Skip to content

Commit

Permalink
CI: Add static binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaariel91 committed Jul 6, 2024
1 parent 50af7e5 commit 5463291
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,27 @@ jobs:
cache-to: type=gha,mode=max
tags: ${{ steps.meta-ver.outputs.tags }}
labels: ${{ steps.meta-ver.coutputs.labels }}

#Release files

- name: Extract binary from Docker image
run: |
container_id=$(docker create ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_IMAGE_BASE }}:pr-3)
docker cp $container_id:/usr/bin/cpu_air_prover .
docker cp $container_id:/usr/bin/cpu_air_verifier .
docker rm $container_id
- name: Verify file existence#1
run: pwd

- name: Verify file existence#2
run: ls -l

- name: Upload files to a GitHub release
uses: svenstaro/upload-release-action@2.4.0
with:
file_glob: true
overwrite: true
tag: ${{ github.ref }}
file: /home/runner/work/stone-packaging/stone-packaging/cpu_air*
repo_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5463291

Please sign in to comment.