Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrust committed Nov 30, 2023
1 parent 001acbe commit a417542
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
BUILD_DIR: es-node.${{github.ref_name}}
BUILD_DIR: es-node.${{ github.ref_name }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -26,22 +26,22 @@ jobs:

- name: Create package
run:
mkdir ${{BUILD_DIR}}
mkdir -p ${{BUILD_DIR}}/snarkbuild
cp -r ethstorage/prover/snarkjs/* ${{BUILD_DIR}}
cp run.sh ${{BUILD_DIR}}
mkdir ${{ env.BUILD_DIR }}
mkdir -p ${{ env.BUILD_DIR }}/snarkbuild
cp -r ethstorage/prover/snarkjs/* ${{ env.BUILD_DIR }}
cp run.sh ${{ env.BUILD_DIR }}

- name: Build
run: |
make TARGETOS=linux TARGETARCH=amd64
mv es-node ${{BUILD_DIR}}
tar -czvf es-node.${{github.ref_name}}.linux-amd64.tar.gz ${{BUILD_DIR}}
mv es-node ${{ env.BUILD_DIR }}
tar -czvf es-node.${{github.ref_name}}.linux-amd64.tar.gz ${{ env.BUILD_DIR }}
make TARGETOS=darwin TARGETARCH=amd64
mv es-node ${{BUILD_DIR}}
tar -czvf es-node.${{github.ref_name}}.darwin-amd64.tar.gz ${{BUILD_DIR}}
mv es-node ${{ env.BUILD_DIR }}
tar -czvf es-node.${{github.ref_name}}.darwin-amd64.tar.gz ${{ env.BUILD_DIR }}
make TARGETOS=darwin TARGETARCH=arm64
mv es-node ${{BUILD_DIR}}
tar -czvf es-node.${{github.ref_name}}.darwin-arm64.tar.gz ${{BUILD_DIR}}
mv es-node ${{ env.BUILD_DIR }}
tar -czvf es-node.${{github.ref_name}}.darwin-arm64.tar.gz ${{ env.BUILD_DIR }}
- name: Create Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit a417542

Please sign in to comment.