From b4b1271f5fd2a4fc7091ad79066608a4e9bf4120 Mon Sep 17 00:00:00 2001 From: orionstardust Date: Mon, 30 Oct 2023 10:41:54 -0500 Subject: [PATCH] Add satsuma deploy action --- .github/workflows/deploy-satsuma.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy-satsuma.yml diff --git a/.github/workflows/deploy-satsuma.yml b/.github/workflows/deploy-satsuma.yml new file mode 100644 index 0000000..5641a55 --- /dev/null +++ b/.github/workflows/deploy-satsuma.yml @@ -0,0 +1,28 @@ +name: Deploy to Satsuma Service + +on: + push: + tags: + - "*" + +jobs: + buildAndDeploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install Yarn + run: npm i -g yarn + - name: Install Libs + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - name: Build + run: yarn build + - name: Deploy to Satsuma + run: | + npx graph deploy --access-token ${{secrets.SATSUMA_ACCESS_TOKEN}} aavegotchi-alchemica subgraph.yaml --node https://app.satsuma.xyz/api/subgraphs/deploy --version-label ${GITHUB_REF#refs/*/} + shell: bash