This repository has been archived by the owner on Dec 15, 2024. It is now read-only.
Update README.md to contain repo archival message #304
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- master | |
release: | |
types: | |
- created | |
jobs: | |
test: | |
name: Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: echo "$GITHUB_CONTEXT" | |
- uses: actions/checkout@v4 | |
- name: Use Node.js (.nvmrc) | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Run linters | |
run: npm run lint | |
- name: Run Build | |
run: npm run build | |
- name: Run Build Web | |
run: npm run build:web | |
- name: Run test | |
run: npm test | |
- name: Release | |
run: npm run release | |
env: | |
CERT_KEY: ${{ secrets.CERT_KEY }} | |
CERT_IV: ${{ secrets.CERT_IV }} | |
APPLE_ID: ${{ secrets.APPLE_ID }} | |
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_ID_PASS }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: List dist folder on Linux and Mac | |
if: runner.os == 'macOS' || runner.os == 'Linux' | |
run: ls -la dist | |
- name: Upload Mac installer artifact | |
if: runner.os == 'macOS' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: UHK.Agent-mac-installer | |
path: dist/UHK.Agent-*-mac.dmg | |
compression-level: 0 | |
retention-days: 5 | |
- name: Upload Linux AppImage artifact | |
if: runner.os == 'Linux' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: UHK.Agent-linux-x86_64.AppImage | |
path: dist/UHK.Agent-*-linux-x86_64.AppImage | |
compression-level: 0 | |
retention-days: 5 | |
- name: List dist folder on Windows | |
if: runner.os == 'Windows' | |
run: dir dist | |
- name: Upload Windows installer artifacts | |
if: runner.os == 'Windows' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: UHK.Agent-windows-installers | |
path: dist/UHK.Agent-*-win*.exe | |
compression-level: 0 | |
retention-days: 5 |