Skip to content

Commit

Permalink
Merge pull request #1 from blakedewey/rc-2.0.0
Browse files Browse the repository at this point in the history
Updates for v2.0.0
  • Loading branch information
blakedewey authored Jun 24, 2024
2 parents bc3454e + 5fea9e3 commit 7fa20a1
Show file tree
Hide file tree
Showing 13 changed files with 952 additions and 280 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
phase_unwrap/_static_version.py export-subst
46 changes: 46 additions & 0 deletions .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: build-push-docker

on:
push:
tags:
- 'v*'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: blakedewey/phase_unwrap

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: blakedewey
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
BUILDKIT_CONTEXT_KEEP_GIT_DIR=true
32 changes: 32 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to PyPI

on:
push:
tags:
- 'v*'

jobs:
pypi-publish:
name: Build and Upload Release to PyPI
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Build distribution
run: |
python -m pip install --upgrade build
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
url: https://test.pypi.org/legacy/
Loading

0 comments on commit 7fa20a1

Please sign in to comment.