Skip to content

v1.1.1a1: CI maintenance #14

v1.1.1a1: CI maintenance

v1.1.1a1: CI maintenance #14

Workflow file for this run

name: Build and publish Python distribution 📦 to PyPI
# XXX: before publishing, configure PyPI
# - https://pypi.org/manage/account/publishing/ (new packages)
# - https://pypi.org/manage/project/strava-offline/settings/publishing/ (existing packages)
on:
release:
types: [created]
jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed for pre-releases
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
make venv
- name: Build
run: |
make dist
- name: Store artifacts
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
pypi:
needs:
- build
name: Publish distribution 📦 to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/strava-offline
permissions:
id-token: write
steps:
- name: Fetch artifacts
uses: actions/download-artifact@v3
with:
name: dist
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1