-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Adds release-please GitHub action. (#32)
Co-authored-by: Mason Cole <[email protected]>
- Loading branch information
Showing
5 changed files
with
48 additions
and
23 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Pypi Publish | |
on: | ||
release: | ||
types: | ||
- created | ||
- published | ||
env: | ||
HATCH_INDEX_AUTH: ${{ secrets.HATCH_INDEX_AUTH }} | ||
HATCH_INDEX_USER: ${{ secrets.HATCH_INDEX_USER }} | ||
|
@@ -14,28 +14,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.9 | ||
- name: Extract Release Name | ||
run: echo "RELEASE_NAME=$(echo $GITHUB_REF | sed -n 's/refs\/tags\///p')" >> $GITHUB_ENV | ||
- name: Install hatch | ||
run: pip install hatch | ||
- name: Publish to Pypi | ||
run: | | ||
hatch version $RELEASE_NAME | ||
hatch build | ||
hatch publish -n | ||
- name: Checkout Main | ||
run: | | ||
git fetch | ||
git stash | ||
git checkout main | ||
git stash apply | ||
- name: Add & Commit | ||
uses: EndBug/[email protected] | ||
with: | ||
add: 'src/flask_muck/__init__.py' | ||
push: origin main --force | ||
|
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,22 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: {} | ||
|
||
name: release-please | ||
|
||
jobs: | ||
release-please: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
with: | ||
# in order to trigger other actions such as Pypi Publish | ||
# need to use a PAT other than the default GITHUB_TOKEN | ||
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} | ||
release-type: python |
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 |
---|---|---|
|
@@ -3,8 +3,8 @@ requires = ["hatchling"] | |
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "Flask-Muck" | ||
dynamic = ["version"] | ||
name = "flask-muck" | ||
version = "0.2.0" | ||
authors = [ | ||
{ name="Daniel Tiesling", email="[email protected]" }, | ||
] | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from .views import FlaskMuckApiView | ||
from .callback import FlaskMuckCallback | ||
|
||
VERSION = "0.2.0" | ||
__version__ = "0.2.0" |