Skip to content

Fix Google Colab compatibility (#369) #81

Fix Google Colab compatibility (#369)

Fix Google Colab compatibility (#369) #81

Workflow file for this run

name: Release
on:
push:
tags:
- "*.*.*"
jobs:
release:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Check out the repo
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install binary dependencies
run: OSTYPE=$OSTYPE make install-deps
- name: Install project
run: make install
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true
platforms: linux/amd64,linux/arm64
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up metadata (pytezos)
id: meta-pytezos
uses: docker/metadata-action@v3
with:
images: bakingbad/pytezos
tags: type=pep440,pattern={{version}}
- name: Set up metadata (michelson-kernel)
id: meta-michelson-kernel
uses: docker/metadata-action@v3
with:
images: bakingbad/michelson-kernel
tags: type=pep440,pattern={{version}}
- name: Publish stable image (pytezos)
uses: docker/build-push-action@v3
with:
context: .
file: pytezos.dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta-pytezos.outputs.tags }}
labels: ${{ steps.meta-pytezos.outputs.labels }}
- name: Publish stable image (michelson-kernel)
uses: docker/build-push-action@v3
with:
context: .
file: michelson-kernel.dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta-michelson-kernel.outputs.tags }}
labels: ${{ steps.meta-michelson-kernel.outputs.labels }}
- name: Poetry publish
run: |
poetry config http-basic.pypi __token__ ${{secrets.PYPI_TOKEN}}
poetry build
poetry publish
- name: Build GitHub release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false