Merge pull request #166 from jazzband/ci/prepare-release-0-2-1 #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- '*' | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
if: github.repository == 'jazzband/icalevents' | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout repository with all history for all branches and tags" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Set up latest Python 3 version" | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: "Install poetry" | |
uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: "2.0.1" | |
- name: "Build package" | |
run: poetry build | |
- name: "Upload packages to Jazzband" | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: jazzband | |
password: ${{ secrets.JAZZBAND_RELEASE_KEY }} | |
repository-url: https://jazzband.co/projects/icalevents/upload | |
attestations: false |