From 129c10d878cc2edc5dd27aeac0a07681dddc8d23 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 12 Jan 2023 12:32:55 +0100 Subject: [PATCH 1/2] added deployment for satsuma --- .github/workflows/deploy-satsuma.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..e93997f --- /dev/null +++ b/.github/workflows/deploy-satsuma.yml @@ -0,0 +1,27 @@ +name: Deploy to Satsuma Service + +on: + tags: + - "*" + +jobs: + buildAndDeploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 14 + - 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-gbm-baazaar-matic subgraph.yaml --node https://app.satsuma.xyz/api/subgraphs/deploy --version-label ${GITHUB_REF#refs/*/} + shell: bash From 89aea80b0428fb0b4604277df41e9a9b97e36101 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 12 Jan 2023 12:33:58 +0100 Subject: [PATCH 2/2] fixed trigger --- .github/workflows/deploy-satsuma.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-satsuma.yml b/.github/workflows/deploy-satsuma.yml index e93997f..1c20a97 100644 --- a/.github/workflows/deploy-satsuma.yml +++ b/.github/workflows/deploy-satsuma.yml @@ -1,8 +1,9 @@ name: Deploy to Satsuma Service on: - tags: - - "*" + push: + tags: + - "*" jobs: buildAndDeploy: