From 4255be8766341fd85557e8b2ee6d519ced300452 Mon Sep 17 00:00:00 2001 From: ordinariusprof Date: Thu, 13 Jun 2024 16:39:30 -0700 Subject: [PATCH] update workflow --- .github/workflows/build.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42acc49a..5033a495 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Deploy to Dev - if: github.ref == 'refs/heads/dev' + if: github.ref == 'refs/heads/main' run: | curl -f \ -X POST \ @@ -65,7 +65,7 @@ jobs: https://api.github.com/repos/ordinalsbot/infra/dispatches - name: Deploy to Testnet - if: github.ref == 'refs/heads/dev' + if: github.ref == 'refs/heads/main' run: | curl -f \ -X POST \ @@ -74,6 +74,16 @@ jobs: --data '{"event_type": "deploy-testnet-public"}' \ https://api.github.com/repos/ordinalsbot/infra/dispatches + - name: Deploy to Signet + if: github.ref == 'refs/heads/main' + run: | + curl -f \ + -X POST \ + -H "Accept: application/vnd.github.v3+json" \ + -H "Authorization: Bearer ${{ secrets.ACTIONS_GITHUB_PAT_DANIEL }}" \ + --data '{"event_type": "deploy-signet-public"}' \ + https://api.github.com/repos/ordinalsbot/infra/dispatches + - name: Deploy to Staging if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' run: |