Skip to content

Commit

Permalink
Fix get version in upload to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Levminer committed Feb 1, 2022
1 parent 421e56a commit 16c6117
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,21 @@ jobs:
echo "::set-output name=url::$url"
env:
response: ${{ steps.get_latest_release.outputs.data }}
- name: Get build number
id: number
- name: Get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: package.json
prop_path: number
prop_path: version
- name: Upload a Release Asset
if: runner.os == 'Windows'
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{steps.get_upload_url.outputs.url}}
asset_path: ./dist/authme-${{steps.number.outputs.prop}}-windows-x64-installer.exe
asset_name: authme-${{steps.number.outputs.prop}}-windows-x64-installer.exe
asset_path: ./dist/authme-${{steps.version.outputs.prop}}-windows-x64-installer.exe
asset_name: authme-${{steps.version.outputs.prop}}-windows-x64-installer.exe
asset_content_type: application/octet-stream
- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 16c6117

Please sign in to comment.