Fixing publish script to use pypi

This commit is contained in:
Jamie Hardt
2023-06-02 19:37:12 -07:00
parent 5427b4cfb1
commit 617f34a515
2 changed files with 23 additions and 23 deletions

View File

@@ -4,36 +4,36 @@ on:
release: release:
types: [published] types: [published]
permissions:
contents: read
id-token: write
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment:
name: release
steps: steps:
- uses: actions/checkout@v2.5.0 - uses: actions/checkout@v3.5.2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4.3.0 uses: actions/setup-python@v4.6.0
with: with:
python-version: '3.x' python-version: '3.x'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install build twine pip install build
- name: Install parsimonious - name: Build package
run: | run: python -m build
pip install parsimonious - name: pypi-publish
- name: Build and publish uses: pypa/gh-action-pypi-publish@v1.8.6
env: # - name: Report to Mastodon
TWINE_USERNAME: __token__ # uses: cbrgm/mastodon-github-action@v1.0.1
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_API_KEY }} # with:
run: | # message: |
python -m build # I just released a new version of ptulsconv, my ADR cue sheet generator!
twine upload dist/* # #python #protools #pdf #filmmaking
- name: Report to Mastodon # ${{ github.server_url }}/${{ github.repository }}
uses: cbrgm/mastodon-github-action@v1.0.1 # env:
with: # MASTODON_URL: ${{ secrets.MASTODON_URL }}
message: | # MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
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 }}

View File