diff --git a/.github/workflows/build_and_release_github.yml b/.github/workflows/build_and_release_github.yml index cd20aa1..00c56b2 100644 --- a/.github/workflows/build_and_release_github.yml +++ b/.github/workflows/build_and_release_github.yml @@ -6,43 +6,41 @@ on: - '*' jobs: - createrelease: - name: createrelease - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') + tagged-release: + name: "Tagged Release" + runs-on: "ubuntu-latest" + steps: - - name: Check out code - uses: actions/checkout@v4 - - name: create release + - uses: "marvinpinto/action-automatic-releases@latest" id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - draft: true + repo_token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false + draft: true + - name: Output Release URL File run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt + - name: Save Release URL file for publish uses: actions/upload-artifact@v3 with: name: release_url path: release_url.txt + - uses: little-core-labs/get-git-tag@v3.0.2 id: tagName + - name: Output git tag run: echo "${{ steps.tagName.outputs.tag }}" > git_tag.txt + - name: Save git tag file for publish uses: actions/upload-artifact@v3 with: name: git_tag path: git_tag.txt - build_and_upload: - needs: createrelease + needs: tagged-release name: build_and_upload runs-on: ubuntu-latest steps: