Skip to content

Initialize

Initialize #9

Workflow file for this run

name: Initialize
on:
workflow_dispatch:
jobs:
initialize:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
persist-credentials: false
- name: Install requirements
run: |
sudo apt install -y wget unzip
- name: Download Spend package
run: |
wget -q -O spend.zip https://circuitscan-artifacts.s3.us-west-2.amazonaws.com/build/spend-nice-olive-raven/pkg.zip
- name: Unzipping Spend package
run: |
mkdir spend && unzip spend.zip '*.zkey' -d spend && rm -rf spend.zip
- name: Download Proof-of-Burn package
run: |
wget -q -O proof_of_burn.zip https://circuitscan-artifacts.s3.us-west-2.amazonaws.com/build/proofofburn-unconscious-sapphire-gorilla/pkg.zip
- name: Unzipping Proof-of-Burn package
run: |
mkdir proof_of_burn && unzip proof_of_burn.zip '*.zkey' -d proof_of_burn && rm -rf proof_of_burn.zip
- name: Packaging parameters
run: |
mkdir 0000_circuitscan
mv spend/build/verify_circuit/groth16_pkey.zkey 0000_circuitscan/spend.zkey
mv proof_of_burn/build/verify_circuit/groth16_pkey.zkey 0000_circuitscan/proof_of_burn.zkey
tar czf 0000_circuitscan.tar.gz 0000_circuitscan/*
split -b1G 0000_circuitscan.tar.gz 0000_circuitscan.tar.gz.
rm -rf 0000_circuitscan.tar.gz
- name: Download GitHub CLI
run: |
wget -q https://github.com/cli/cli/releases/download/v2.76.1/gh_2.76.1_linux_amd64.deb
- name: Install GitHub CLI
run: |
sudo dpkg -i gh_2.76.1_linux_amd64.deb
- name: Login
run: |
echo "${{secrets.gh_token}}" | gh auth login --with-token
- name: Create release
run: |
gh release create 0000_circuitscan --title "CircuitScan's contribution" --notes "Initial contributions made by https://circuitscan.org" 0000_circuitscan.tar.gz.*