From d11309d2d8f1f4d097ef20a01b1e745128024bf5 Mon Sep 17 00:00:00 2001 From: bpcreech <35012922+bpcreech@users.noreply.github.com> Date: Sun, 4 Feb 2024 18:05:31 -0500 Subject: [PATCH] switch to manual triggering of releases --- .../workflows/{build.yaml => release.yaml} | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) rename .github/workflows/{build.yaml => release.yaml} (73%) diff --git a/.github/workflows/build.yaml b/.github/workflows/release.yaml similarity index 73% rename from .github/workflows/build.yaml rename to .github/workflows/release.yaml index 94a2785..140b541 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/release.yaml @@ -2,12 +2,12 @@ name: Deploy on: push: - branches: - - main + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: build: - name: Build + name: Release runs-on: ubuntu-latest steps: @@ -22,13 +22,22 @@ jobs: - run: npm install - run: npm run build + # - name: Create Release + # id: create_release + # uses: rymndhng/release-on-push-action@master + # with: + # bump_version_scheme: minor + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release id: create_release - uses: rymndhng/release-on-push-action@master - with: - bump_version_scheme: minor + uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} - name: Tar build run: tar cvfz build.tar.gz ./dist