Skip to content
Merged

V53 #57

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release squid

on:
push:
tags:
- '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: update squid.yml
run: |
# Get the tag from GitHub
TAG=$(echo ${{ github.ref }} | sed 's/refs\/tags\///')

# Extract the numeric part of the tag
VERSION=$(echo $TAG | sed 's/v//')

# Update the version in squid.yaml
sed -i "s/^version: .*/version: $VERSION/" squid.yaml

# Optional: Print the updated version for verification
echo "Updated squid.yaml version to: $VERSION"

- name: Build and deploy squid
run: squid build && squid deploy .

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

246 changes: 0 additions & 246 deletions docs/REQUIREMENTS.md

This file was deleted.

Loading