Skip to content

Commit

Permalink
ci: add artifacts on release (kkrt-labs#952)
Browse files Browse the repository at this point in the history
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/kkrt-labs/kakarot/952)
<!-- Reviewable:end -->
  • Loading branch information
d-roak authored Feb 6, 2024
1 parent 94e9633 commit b6b1283
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
REGISTRY_IMAGE: ghcr.io/${{ github.repository }}/deployer

jobs:
build_and_push_deployer:
build_and_push_docker_deployer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -34,3 +34,47 @@ jobs:
file: ./docker/deployer/Dockerfile
platforms: linux/amd64,linux/arm64
build-args: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}

build_and_push_artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Load cached Poetry installation
id: cached-poetry
uses: actions/cache@v3
with:
path: ~/.local
key: poetry-${{ runner.os }}
- name: Install Poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- run: poetry config installer.modern-installation false
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: make setup
- name: Compile all the cairo files
run: make build
- name: Zip the build
run: zip -r build.zip build
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build.zip
asset_name: kakarot-build.zip
tag: ${{ github.ref_name }}
overwrite: true

0 comments on commit b6b1283

Please sign in to comment.