We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 671685b commit 4b89128Copy full SHA for 4b89128
.github/workflows/release-prod.yml
@@ -0,0 +1,36 @@
1
+name: Set squid version to prod
2
+on:
3
+ push:
4
+ tags:
5
+ - 'prod'
6
+
7
+jobs:
8
+ build_and_publish:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout
12
+ uses: actions/checkout@v4
13
14
+ - name: Install Node.js
15
+ uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20
18
19
+ - name: Install squid CLI
20
+ run: npm i -g @subsquid/cli
21
22
+ - name: npm install
23
+ run: npm i
24
25
+ - name: Authenticate to squid
26
+ env:
27
+ API_TOKEN: ${{ secrets.SQUID_API_TOKEN }}
28
+ run: sqd auth -k $API_TOKEN
29
30
+ - name: update squid.yml
31
+ run: |
32
+ # Get the branch name from GitHub
33
+ BRANCH_NAME=${{ github.ref_name }}
34
35
+ # Update prod tag
36
+ sqd tags add prod --name origin-squid -s $BRANCH_NAME --allow-tag-reassign
0 commit comments