Skip to content

Commit

Permalink
Update release drafter format, use twine (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmyrberg committed Jul 11, 2022
1 parent 8882240 commit 3e75c0c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name-template: 'Version $RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
template: |
## What's Changed
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-merge.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release Drafter
name: Draft release

on:
push:
branches: [ master ]
branches: [master]

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test

on:
pull_request:
branches: [ master ]
branches: [master]

jobs:
scope:
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install build twine
- name: Build distribution
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
twine upload -r testpypi dist/*

0 comments on commit 3e75c0c

Please sign in to comment.