-
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.
- Loading branch information
1 parent
c4226da
commit 50561f7
Showing
4 changed files
with
35 additions
and
48 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 |
---|---|---|
|
@@ -2,11 +2,6 @@ name: CI | |
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
tags-ignore: | ||
- "*" | ||
|
||
jobs: | ||
test: | ||
|
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,11 +1,14 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
tags-ignore: | ||
- "*" | ||
|
||
jobs: | ||
|
||
|
||
# ------------- | ||
release: | ||
name: Create A Release | ||
|
@@ -16,7 +19,7 @@ jobs: | |
id-token: write | ||
|
||
outputs: | ||
TAG: ${{ steps.semver.outputs.nextStrict }} | ||
TAG: ${{ steps.semantic.outputs.tag }} | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -25,54 +28,28 @@ jobs: | |
# Personal Access Token enables git push in actions (repo contents permission) | ||
token: ${{ secrets.PAT }} | ||
|
||
- name: Calculate next version | ||
id: semver | ||
uses: ietf-tools/[email protected] | ||
- name: Python Semantic Release | ||
id: semantic | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- id: current | ||
run: echo "version=$(pipx run hatch version | tr -d '\n')" >> $GITHUB_OUTPUT | ||
|
||
- if: ${{ steps.current.outputs.version == steps.semver.outputs.nextStrict || !steps.current.outputs.version }} | ||
run: exit 1 | ||
|
||
- name: Version Up | ||
run: pipx run hatch version ${{ steps.semver.outputs.nextStrict }} | ||
|
||
- name: Commit version change and tag | ||
run: | | ||
git config --global user.name 'GitHub Automation' | ||
git config --global user.email 'automation[bot]@leocov.com' | ||
git add src/pyside_app_core/__init__.py | ||
git commit -m "chore(release): version up to: ${{ steps.semver.outputs.nextStrict }} [skip ci]" | ||
git push | ||
git tag ${{ steps.semver.outputs.nextStrict }} | ||
git push --tags | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
build: false | ||
tag: true | ||
vcs_release: true | ||
changelog: false | ||
|
||
- name: Create Build | ||
run: pipx run hatch build | ||
run: pipx run hatch build -t wheel --clean | ||
|
||
- name: Generate Build Signatures | ||
uses: sigstore/[email protected] | ||
with: | ||
inputs: ./dist/* | ||
|
||
- name: Generate Changelog | ||
id: changelog | ||
uses: requarks/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ steps.semver.outputs.nextStrict }} | ||
excludeScopes: "release" | ||
|
||
- uses: ncipollo/release-action@v1 | ||
- name: Python Semantic Release - Publish | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
artifacts: "dist/*" | ||
tag: ${{ steps.semver.outputs.nextStrict }} | ||
name: "Release v${{ steps.semver.outputs.nextStrict }}" | ||
body: ${{ steps.changelog.outputs.changelog }} | ||
|
||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# ------------- | ||
pypi: | ||
|
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 |
---|---|---|
|
@@ -26,3 +26,5 @@ resoruces.py | |
|
||
_pysidedeploy.spec | ||
_generated_icon.png | ||
|
||
_version.py |
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