Merge pull request #314 from kodadot/main #61
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: subsquid | |
on: | |
push: | |
branches: | |
- "release-**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: install @subsquid/cli | |
run: npm install --location=global @subsquid/cli | |
- name: auth subsquid | |
run: | | |
BRANCH=${{ github.ref_name }} | |
PREFIX="release-" | |
VERSION=${BRANCH/#$PREFIX} | |
echo "VERSION=$VERSION" >> $GITHUB_ENV | |
sqd auth -k ${{ secrets.DEPLOYMENT_KEY }} | |
- name: deploy subsquid | |
id: deploy | |
run: sqd deploy -o kodadot -u -m ${{ env.VERSION }}.yaml . |