Skip to content

Commit

Permalink
chore: try automatic version naming
Browse files Browse the repository at this point in the history
  • Loading branch information
rk16449 committed Mar 4, 2024
1 parent 0a485c7 commit 8ec2e29
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,15 @@ jobs:
working-directory: "./clients/react-app"
run: npm run build:win

- name: Get version from package.json
id: get-version
run: |
echo ::set-output name=version::$(node -pe "require('./clients/react-app/package.json').version")
working-directory: "./clients/react-app"

- name: release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
./clients/react-app/dist/*.exe
./clients/react-app/dist/*.zip
Expand All @@ -60,3 +65,6 @@ jobs:
./clients/react-app/dist/*.tar.gz
./clients/react-app/dist/*.yml
./clients/react-app/dist/*.blockmap
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NAME: ${{ steps.get-version.outputs.version }}

0 comments on commit 8ec2e29

Please sign in to comment.