Skip to content

Commit

Permalink
Fixing publish script to use pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
iluvcapra committed Jun 3, 2023
1 parent 5427b4c commit 617f34a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@ on:
release:
types: [published]

permissions:
contents: read
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: release
steps:
- uses: actions/checkout@v2.5.0
- uses: actions/checkout@v3.5.2
- name: Set up Python
uses: actions/setup-python@v4.3.0
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 twine
- name: Install parsimonious
run: |
pip install parsimonious
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_API_KEY }}
run: |
python -m build
twine upload dist/*
- name: Report to Mastodon
uses: cbrgm/[email protected]
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 }}
pip install build
- name: Build package
run: python -m build
- name: pypi-publish
uses: pypa/[email protected]
# - name: Report to Mastodon
# uses: cbrgm/[email protected]
# 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 }}
Empty file removed conftest.py
Empty file.

0 comments on commit 617f34a

Please sign in to comment.