1
Fork 0
mirror of https://github.com/Steffo99/emblematic.git synced 2024-11-28 01:14:19 +00:00
emblematic/.github/workflows/release.yml

42 lines
836 B
YAML
Raw Normal View History

2023-03-07 22:54:05 +00:00
name: "Release new version"
on:
# Creation of a new tag starting with v
push:
tags:
- "v*"
jobs:
test:
uses: ./.github/workflows/test.yml
build:
uses: Steffo99/.github/.github/workflows/build-poetry.yml@main
github:
uses: Steffo99/.github/.github/workflows/release-poetry-github.yml@main
needs:
- test
- build
# Must be explicit due to how Trusted Publishing works on PyPI!
2023-03-07 22:54:05 +00:00
pypi:
name: "Publish release on PyPI"
runs-on: ubuntu-latest
permissions:
id-token: write
2023-03-07 22:54:05 +00:00
needs:
- test
- build
steps:
- name: "Download built packages from artifacts"
uses: actions/download-artifact@v4
with:
name: "Build"
path: dist/
- name: "Upload package"
uses: pypa/gh-action-pypi-publish@release/v1