-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Release on tags that matches semantic version. (#161)
- Loading branch information
Showing
10 changed files
with
134 additions
and
124 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,65 @@ | ||
jobs: | ||
package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
cache: pip | ||
python-version: '3.11' | ||
- run: env | sort | ||
- run: make dev-package | ||
- run: make build | ||
- env: | ||
TWINE_NON_INTERACTIVE: true | ||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | ||
TWINE_USERNAME: ${{ vars.TWINE_USERNAME }} | ||
run: make upload | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install git-changelog using pipx | ||
run: pipx install git-changelog | ||
- name: Prepare release notes | ||
run: git-changelog --release-notes > release-notes.md | ||
- name: Create GitHub release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: release-notes.md | ||
prerelease: ${{ startsWith(github.ref, 'refs/tags/v0') }} | ||
pages-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
cache: pip | ||
python-version: '3.11' | ||
- run: env | sort | ||
- run: make dev-docs | ||
- run: make docs | ||
- name: Upload pages artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: public | ||
pages-deploy: | ||
needs: build | ||
permissions: | ||
pages: write | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: deployment | ||
name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v2 | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- v[1-9][0-9]*.[0-9]+.[0-9]+ | ||
- v0.[0-9]+.[0-9]+ |
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 |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
"pytest", | ||
"Quickstart", | ||
"setuptools", | ||
"softprops", | ||
"toctree", | ||
"typer", | ||
"unshallow" | ||
|
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
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 |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
"pytest", | ||
"Quickstart", | ||
"setuptools", | ||
"softprops", | ||
"toctree", | ||
"typer", | ||
"unshallow" | ||
|
23 changes: 0 additions & 23 deletions
23
...ate/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/package.yml.jinja
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
template/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/pages.yml.jinja
This file was deleted.
Oops, something went wrong.
65 changes: 65 additions & 0 deletions
65
...ate/[% if repo_host_type == 'github.com' %].github[% endif %]/workflows/release.yml.jinja
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,65 @@ | ||
jobs: | ||
package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
cache: pip | ||
python-version: '{{ default_py }}' | ||
- run: env | sort | ||
- run: make dev-package | ||
- run: make build | ||
- env: | ||
TWINE_NON_INTERACTIVE: true | ||
TWINE_PASSWORD: {{ '${{ secrets.TWINE_PASSWORD }}' }} | ||
TWINE_USERNAME: {{ '${{ vars.TWINE_USERNAME }}' }} | ||
run: make upload | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install git-changelog using pipx | ||
run: pipx install git-changelog | ||
- name: Prepare release notes | ||
run: git-changelog --release-notes > release-notes.md | ||
- name: Create GitHub release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
body_path: release-notes.md | ||
prerelease: {{ '${{ startsWith(github.ref, \'refs/tags/v0\') }}' }} | ||
pages-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
cache: pip | ||
python-version: '3.11' | ||
- run: env | sort | ||
- run: make dev-docs | ||
- run: make docs | ||
- name: Upload pages artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: public | ||
pages-deploy: | ||
needs: build | ||
permissions: | ||
pages: write | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: deployment | ||
name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v2 | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- v[1-9][0-9]*.[0-9]+.[0-9]+ | ||
- v0.[0-9]+.[0-9]+ |