Skip to content

try using tags like prod-v55 #1

try using tags like prod-v55

try using tags like prod-v55 #1

Workflow file for this run

name: Set squid version to prod
on:
push:
tags:
- 'prod-v*'
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
VERSION=${GITHUB_REF#refs/tags/prod-}
# Update prod tag
sqd tags add prod --name origin-squid -s $BRANCH_NAME --allow-tag-reassign