-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fea/release semantic versionning (#7)
* refacto: rename package name * fix: poetry lock * refacto: adapt makefile+pyproject order+template * fea: release workflow * fix: custom token * fix: poetry in CI * fix: author * fix :poetry core * fix: install cython * fix: require cython * fix: GH token name * fix: doc * fix: install poetry pip * fix: syntax * fix: remove path * fix: add lapx as dependency * fix: official script * fix: remove lock * fix: poetry lock ignore * fix: remove tests * fix: eol --------- Co-authored-by: TomDarmon <tom.darmon@artefact.com>
- Loading branch information
Showing
17 changed files
with
149 additions
and
66 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
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 |
---|---|---|
|
@@ -23,5 +23,3 @@ jobs: | |
run: | | ||
mkdocs build | ||
mkdocs gh-deploy --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,36 @@ | ||
# This workflow triggers the CI, updates the version, and uploads the release to GitHub and Google Cloud Storage when a push is made to either the 'main' or 'develop' branch. | ||
# | ||
# Workflow Steps: | ||
# | ||
# 1. Ci is triggered using the CI workflow defined in .github/workflows/ci.yaml | ||
# 2. If it succeeds, the version is updated using Python Semantic Release | ||
# 3. The release is uploaded to GitHub (same step and GitHub action) | ||
|
||
name: CI and Release on main | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
CI: | ||
uses: ./.github/workflows/ci.yaml | ||
|
||
Release: | ||
runs-on: ubuntu-latest | ||
concurrency: Release | ||
needs: CI | ||
permissions: | ||
id-token: write | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Python Semantic Release | ||
uses: python-semantic-release/python-semantic-release@master | ||
with: | ||
github_token: ${{ secrets.GH_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
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 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,21 @@ | ||
# CHANGELOG | ||
{% if context.history.unreleased | length > 0 %} | ||
{# UNRELEASED #} | ||
## Unreleased | ||
{% for type_, commits in context.history.unreleased | dictsort %} | ||
### {{ type_ | capitalize }} | ||
{% for commit in commits %}{% if type_ != "unknown" %} | ||
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) | ||
{% else %} | ||
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) | ||
{% endif %}{% endfor %}{% endfor %}{% endif %} | ||
{% for version, release in context.history.released.items() %} | ||
{# RELEASED #} | ||
## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }}) | ||
{% for type_, commits in release["elements"] | dictsort %} | ||
### {{ type_ | capitalize }} | ||
{% for commit in commits %}{% if type_ != "unknown" %} | ||
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) | ||
{% else %} | ||
* {{ commit.message.rstrip() }} ([`{{ commit.short_hash }}`]({{ commit.hexsha | commit_hash_url }})) | ||
{% endif %}{% endfor %}{% endfor %}{% endfor %} |
File renamed without changes.
File renamed without 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
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
File renamed without changes.
File renamed without 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