diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index c9cc24a..76033d7 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -14,15 +14,20 @@ jobs: runs-on: ubuntu-latest outputs: upload_url: ${{ steps.create_release.outputs.upload_url }} + tag: ${{ steps.tag.outputs.tag }} steps: + - name: 'Generate Tag' + run: echo ::set-output name=tag::${GITHUB_REF#refs/tags/} + if: startsWith(github.ref, 'refs/tags/v') + id: tag - name: 'Create Release' id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag_name: ${{ steps.tag.outputs.tag }} + release_name: Release ${{ steps.tag.outputs.tag }} build-linux: runs-on: ubuntu-latest needs: release