mirror of
https://github.com/iluvcapra/ptulsconv.git
synced 2025-12-31 08:50:48 +00:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: Upload Python Package
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
environment:
|
|
name: release
|
|
steps:
|
|
- uses: actions/checkout@v3.5.2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4.6.0
|
|
with:
|
|
python-version: '3.x'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install build
|
|
- name: Build package
|
|
run: python -m build
|
|
- name: pypi-publish
|
|
uses: pypa/gh-action-pypi-publish@v1.8.6
|
|
# - name: Report to Mastodon
|
|
# uses: cbrgm/mastodon-github-action@v1.0.1
|
|
# with:
|
|
# message: |
|
|
# I just released a new version of ptulsconv, my ADR cue sheet generator!
|
|
# #python #protools #pdf #filmmaking
|
|
# ${{ github.server_url }}/${{ github.repository }}
|
|
# env:
|
|
# MASTODON_URL: ${{ secrets.MASTODON_URL }}
|
|
# MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
|