diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 3157fdc..870f45d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -33,10 +33,13 @@ jobs: - uses: actions/checkout@v1 - name: Build run: scripts/action release ${{ matrix.target }} + - name: Get the version + id: get_version + run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} - name: Upload binaries to release uses: svenstaro/upload-release-action@v1-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: target/tar/navi.tar.gz tag: ${{ github.ref }} - asset_name: navi-${{ github.ref }}-${{ matrix.target }}.tar.gz \ No newline at end of file + asset_name: navi-${{ steps.get_version.outputs.VERSION }}-${{ matrix.target }}.tar.gz \ No newline at end of file