Skip to content

Commit

Permalink
fix release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TimurRin committed Jul 4, 2024
1 parent e67523d commit aba1585
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,18 @@ jobs:
name: Install dependencies
- run: npm run build:sea
name: Build executables
- id: set-repo-name
run: echo "REPO_NAME=$(echo $GITHUB_REPOSITORY | cut -d'/' -f2)" >> $GITHUB_ENV
name: Set repository name
- run: |
EXT=""
if [ "${{ matrix.os }}" == "windows-latest" ]; then
EXT=".exe"
fi
mv /build/sea/app${EXT} /build/sea/${{ github.event.repository.name }}-${{ github.ref_name }}-${{ runner.arch }}${EXT}
shell: bash
name: Rename executable
- uses: softprops/action-gh-release@v1
with:
files: |
build/sea/${{ env.REPO_NAME }}-${{ github.ref_name }}-${{ runner.arch }}${{ matrix.os == 'windows-latest' && '.exe' || '' }}
build/sea/${{ github.event.repository.name }}-${{ github.ref_name }}-${{ runner.arch }}${{ matrix.os == 'windows-latest' && '.exe' || '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: Attach executables to release
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "anca",
"version": "0.0.0",
"private": true,
"description": "Organize your workspaces and manage projects deploy fast and easy",
"repository": {
"type": "git",
Expand Down

0 comments on commit aba1585

Please sign in to comment.