From 9e6b16f2abbd07e69d47ec1264701d66dc2926ac Mon Sep 17 00:00:00 2001 From: zebra-lucky Date: Thu, 24 Oct 2024 20:23:58 +0300 Subject: [PATCH] add .github/workflows/build.yml --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..5f38dd911 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build release workflow + +on: + push: + tags: + - '*' + +jobs: + create_release: + runs-on: ubuntu-20.04 + name: Create github release + outputs: + upload_url: > + ${{ steps.get_release.outputs.upload_url || + steps.create_release.outputs.upload_url }} + steps: + - name: Try to Get Release + id: get_release + uses: zebra-lucky/actions-js-getRelease@0.0.3 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag: ${{ github.ref }} + - name: Create Release + id: create_release + if: ${{ !steps.get_release.outputs.upload_url }} + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + draft: false + prerelease: false