File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments