Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Build and tag latest docker image
run: |
make container -e REGISTRY_NAME=ghcr.io/${{ github.repository_owner }} IMAGE_VERSION=$GITHUB_SHA
docker build -f Dockerfile -t ghcr.io/${{ github.repository_owner }}/nuts:$GITHUB_SHA .

- name: Tag versioned image
run: docker tag ghcr.io/${{ github.repository_owner }}/nuts:$GITHUB_SHA ghcr.io/${{ github.repository_owner }}/nuts:latest
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
# https://www.ianwootten.co.uk/2020/10/23/publishing-to-pypi-using-github-actions/
name: Publish nuts to PyPI and release on GitHub
on: [push]
on:
push:
tags:
- "*"

jobs:
build-and-publish-to-pypi:
if: startsWith(github.ref, 'refs/tags')
name: Build and publish nuts to PyPI
runs-on: ubuntu-latest
steps:
Expand All @@ -20,7 +23,6 @@ jobs:
- name: Build and then publish nuts to PyPI
run: poetry publish --build
relase-on-github:
if: startsWith(github.ref, 'refs/tags')
name: Release on GitHub
runs-on: ubuntu-latest
steps:
Expand All @@ -29,4 +31,3 @@ jobs:
uses: softprops/action-gh-release@v3
with:
body_path: ${{ github.workspace }}/release_notes/${{ github.ref_name }}.md