-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from lgarber-akamai/new/release-workflow
new: Add support for publishing to PyPI through GHA
- Loading branch information
Showing
6 changed files
with
115 additions
and
7 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,21 @@ | ||
name-template: 'v$NEXT_PATCH_VERSION' | ||
tag-template: 'v$NEXT_PATCH_VERSION' | ||
categories: | ||
- title: '🚀 Added' | ||
label: 'added-feature' | ||
- title: '🧰 Changed' | ||
label: 'changed' | ||
- title: "⚠️ Deprecated" | ||
label: "deprecated" | ||
- title: "⚠️ Removed" | ||
label: "removed" | ||
- title: '🐛 Bug Fixes' | ||
label: 'bugfix' | ||
- title: "⚠️ Security" | ||
label: "security" | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
no-changes-template: "- No changes" | ||
template: | | ||
## Changes | ||
$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
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,38 @@ | ||
name: release | ||
on: | ||
workflow_dispatch: null | ||
release: | ||
types: [ published ] | ||
jobs: | ||
pypi-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3 | ||
|
||
- name: Update system packages | ||
run: sudo apt-get update -y | ||
|
||
- name: Install make | ||
run: sudo apt-get install -y build-essential | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@75f3110429a8c05be0e1bf360334e4cced2b63fa # pin@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install Python deps | ||
run: pip install wheel | ||
|
||
- name: Install package requirements | ||
run: make requirements | ||
|
||
- name: Build the package | ||
run: make build | ||
env: | ||
LINODE_CLI_VERSION: ${{ github.event.release.tag_name }} | ||
|
||
- name: Publish the release artifacts to PyPI | ||
uses: pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f # pin@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_API_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,16 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@fe52e97d262833ae07d05efaf1a239df3f1b5cd4 # pin@v5 | ||
with: | ||
config-name: release-drafter.yml | ||
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
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