diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6159950..a339be4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 @@ -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 }}