From eea5d91cf691723900d1153440ee91daa145af82 Mon Sep 17 00:00:00 2001 From: Alex Tomic Date: Tue, 28 Dec 2021 09:36:47 -0500 Subject: [PATCH] Github action release testing --- .github/workflows/create_release.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index a883967..5fa2275 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -14,17 +14,24 @@ jobs: uses: actions/checkout@v2 - name: Build project run: cargo build --release --locked - # - name: Bump version and push tag/create release point - # uses: anothrNick/github-tag-action@1.17.2 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # WITH_V: true - # id: bump_version + - name: Bump version and push tag/create release point + uses: anothrNick/github-tag-action@1.17.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WITH_V: true + INITIAL_VERSION: 0.2.1 + id: bump_version + - name: "Create GitHub Release" + uses: actions/create-release@v1 # https://github.com/actions/create-release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{steps.bump_version.outputs.tag}} - name: Upload binary to release uses: svenstaro/upload-release-action@v1-release with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: target/release/reqsink asset_name: reqsink-linux-amd64 - tag: latest + tag: ${{steps.bump_version.outputs.tag}} overwrite: true