From 49bf843f529d401ac81b6fdceaadec6dfda4f442 Mon Sep 17 00:00:00 2001 From: "novice.li" Date: Sat, 20 Jan 2024 22:20:28 +0800 Subject: [PATCH] update release action --- .github/workflows/release.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19d0cb0..4dcf8b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,26 +38,20 @@ jobs: # Delete the release curl -X DELETE -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/releases/${RELEASE_ID}" - - name: xxx - run: | - ls -l - name: Set up Git run: | git config user.email "novice88@users.noreply.github.com" git config user.name "novice88" - name: Create Tag - run: git tag -a v${{ github.run_number }} -m "Release version v${{ github.run_number }}" + run: git tag -a ${{ github.workflow }} -m "Release version ${{ github.workflow }}" - name: Push Tag - run: git push origin v${{ github.run_number }} - - - name: ls - run: | - ls -l + run: git push origin ${{ github.workflow }} - name: Create Release id: create_release uses: ncipollo/release-action@v1 with: - artifacts: "jetbra-dist/target/jetbra-all.zip" \ No newline at end of file + artifacts: "jetbra-dist/target/jetbra-all.zip" + tag: ${{ github.workflow }} \ No newline at end of file