chore: add missing package #15
Workflow file for this run
This file contains hidden or 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: Release Test Version | |
| on: | |
| push: | |
| tags: ['dev-*'] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [macos-14, windows-latest, ubuntu-latest] | |
| environment: dev | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| id: py | |
| with: | |
| python-version: '3.11' | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: { node-version: 20, cache: yarn } | |
| - name: Enable corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Make .env file | |
| run: | | |
| echo "NEXT_PUBLIC_API_URL=${{ secrets.API_URL }}" > .env | |
| echo "NEXT_PUBLIC_WS_URL=${{ secrets.WS_URL }}" >> .env | |
| echo "NEXT_PUBLIC_CROWDIN_DISTRIBUTION_HASH=${{ secrets.CROWDIN_DISTRIBUTION_HASH }}" >> .env | |
| - name: Build electron | |
| uses: samuelmeuli/action-electron-builder@v1 | |
| env: | |
| NEXT_PUBLIC_API_URL: ${{ secrets.API_URL }} | |
| NEXT_PUBLIC_WS_URL: ${{ secrets.WS_URL }} | |
| NEXT_PUBLIC_CROWDIN_DISTRIBUTION_HASH: ${{ secrets.CROWDIN_DISTRIBUTION_HASH }} | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| release: false | |
| args: --publish=never | |
| build_script_name: build:action | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.os }}-artifacts | |
| path: | | |
| dist/*.dmg | |
| dist/*.zip | |
| dist/latest-mac.yml | |
| dist/*.blockmap | |
| dist/*Setup.exe | |
| dist/*Setup.exe.blockmap | |
| dist/latest.yml | |
| dist/*.AppImage | |
| dist/*.deb | |
| dist/*.rpm | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: { path: dist } | |
| - name: Update test-version release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: test-version | |
| name: 'Test Version' | |
| commit: ${{ github.sha }} | |
| prerelease: true | |
| allowUpdates: true | |
| replacesArtifacts: true | |
| removeArtifacts: true | |
| omitNameDuringUpdate: true | |
| omitBodyDuringUpdate: true | |
| artifacts: 'dist/**' |