Skip to content

Commit

Permalink
Update build-linux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
timamus authored Jul 22, 2024
1 parent f87c933 commit b647b18
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,35 @@ jobs:
- name: Build Quasar Electron App
run: quasar build -m electron

- name: List files in dist/electron
run: ls -al dist/electron

- name: Upload Build Artifacts
uses: actions/upload-artifact@v2
with:
name: qchatgpt
path: dist/electron/*

release:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'

- name: Install dependencies
run: npm install

- name: Get version from package.json
id: get_version
run: echo "VERSION=$(node -p -e "require('./package.json').version")" >> $GITHUB_ENV

- name: Download Build Artifacts
uses: actions/download-artifact@v2
with:
Expand All @@ -53,8 +71,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: Release v${{ github.run_number }}
tag_name: v${{ env.VERSION }}
release_name: Release v${{ env.VERSION }}
draft: false
prerelease: false

Expand Down

0 comments on commit b647b18

Please sign in to comment.