-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release and release drafter workflows (#22)
* add release drafter workflow * add release workflow
- Loading branch information
1 parent
20d7194
commit ba4f5ed
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
categories: | ||
- title: ':boom: Breaking Changes' | ||
label: 'breaking' | ||
- title: ':package: Build System' | ||
label: 'build' | ||
- title: ':construction_worker: Continuous Integration' | ||
label: 'ci' | ||
- title: ':books: Documentation' | ||
label: 'documentation' | ||
- title: ':rocket: Features' | ||
label: 'enhancement' | ||
- title: ':beetle: Fixes' | ||
label: 'bug' | ||
- title: ':racehorse: Performance' | ||
label: 'performance' | ||
- title: ':hammer: Refactoring' | ||
label: 'refactoring' | ||
- title: ':fire: Removals and Deprecations' | ||
label: 'removal' | ||
- title: ':lipstick: Style' | ||
label: 'style' | ||
- title: ':rotating_light: Testing' | ||
label: 'testing' | ||
template: | | ||
## What’s Changed | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
name: Release Drafter | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
draft_release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: '3.8' | ||
architecture: x64 | ||
- run: pip install --constraint=.github/workflows/constraints.txt pip | ||
- run: pip install --constraint=.github/workflows/constraints.txt poetry | ||
- run: poetry build | ||
- run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pip==22.0.3 | ||
poetry==1.1.12 |