Skip to content

Commit

Permalink
Workflow tweaks (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmyrberg committed Jul 11, 2022
1 parent 3e75c0c commit 5d3c5b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,24 @@ permissions:
contents: read

jobs:
update-release-draft:
draft-release:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_DRAFTER_PAT }}
GITHUB_TOKEN: ${{ secrets.RELEASE_DRAFTER_PAT }}
- name: Build and upload distribution to Test PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
python -m pip install --upgrade pip
pip install build twine
python -m build --sdist --wheel --outdir dist/ .
twine upload -r testpypi dist/*
14 changes: 5 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
- name: Build and upload distribution to Test PyPi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build distribution
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution to Test PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
twine upload -r testpypi dist/*
twine upload dist/*
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
m2r2==0.3.2
setuptools_scm==7.0.4
sphinx==5.0.2
sphinxcontrib-napoleon
sphinx_rtd_theme==1.0.0

0 comments on commit 5d3c5b4

Please sign in to comment.