Skip to content

Commit

Permalink
Version ref fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arran4 committed Mar 9, 2024
1 parent e4428aa commit fe790c1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
- name: Install dependencies
run: sudo apt-get install -y build-essential debhelper

- name: Version
run: |
sed -i "s/^version: [0-9.+-]\+$/version: $(echo "$GITHUB_REF_NAME" | sed 's/^v//')/" pubspec.yaml
- name: Get version from tag
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}

- name: Build package
run: dpkg-buildpackage -us -uc
Expand All @@ -30,7 +30,7 @@ jobs:
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ../kde-keyboard-shortcuts-with-meta_${{ github.ref }}_all.deb
asset_name: kde-keyboard-shortcuts-with-meta_${{ github.ref }}_all.deb
asset_path: ../kde-keyboard-shortcuts-with-meta_${{ steps.get_version.outputs.VERSION }}_all.deb
asset_name: kde-keyboard-shortcuts-with-meta_${{ steps.get_version.outputs.VERSION }}_all.deb
asset_content_type: application/octet-stream
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fe790c1

Please sign in to comment.