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
dependabot[bot] 70625d0300 Bump actions/download-artifact from 3 to 4
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-15 15:21:17 +01:00

41 lines
836 B
YAML

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!
pypi:
name: "Publish release on PyPI"
runs-on: ubuntu-latest
permissions:
id-token: write
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