Skip to content

Commit

Permalink
allow for prod setting via tag
Browse files Browse the repository at this point in the history
  • Loading branch information
apexearth committed Oct 20, 2024
1 parent 671685b commit 4b89128
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Set squid version to prod
on:
push:
tags:
- 'prod'

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install squid CLI
run: npm i -g @subsquid/cli

- name: npm install
run: npm i

- name: Authenticate to squid
env:
API_TOKEN: ${{ secrets.SQUID_API_TOKEN }}
run: sqd auth -k $API_TOKEN

- name: update squid.yml
run: |
# Get the branch name from GitHub
BRANCH_NAME=${{ github.ref_name }}
# Update prod tag
sqd tags add prod --name origin-squid -s $BRANCH_NAME --allow-tag-reassign

0 comments on commit 4b89128

Please sign in to comment.