Skip to content

Manual a0 snap

Manual a0 snap #10

name: "Manual a0 snap"
on: workflow_dispatch
jobs:
a0-snap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "20"
- name: install global mocha
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
npm install -g mocha
npm install -g ts-mocha
npm install -g typescript
ts-mocha -h
- name: install essential
run: |
sudo apt-get update
sudo apt-get install -y pkg-config build-essential libudev-dev
- name: a0 snapshot
working-directory: ./a0
run: |
npm install
npm run snap
- uses: actions/upload-artifact@v4
with:
name: a0-snapshot-${{ github.run_id }}
path: |
./data/a0/
- name: Commit changes
run: |
git config --global user.email [email protected]
git config --global user.name invariantStats
git add ./data/
git commit -m "Aleph Zero snapshot of data done!"
- name: GitHub Push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main