mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-05-03 13:24:20 +02:00
Compare commits
12 Commits
ci/fix_build
...
v2.4.2
| Author | SHA1 | Date | |
|---|---|---|---|
| 58f01fb3a2 | |||
| 1e344eacb7 | |||
| 34002fa51a | |||
| a00d510a75 | |||
| 120faf9523 | |||
| d7bd61f69e | |||
| 94bcfff724 | |||
| a17e7a0d52 | |||
| 7f67d28887 | |||
| 52d8e4b332 | |||
| dea2b44e6a | |||
| dc70ea6dfb |
@@ -14,7 +14,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v7
|
- uses: actions/github-script@v7
|
||||||
id: script
|
id: script
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' && github.event.ref_type != 'tag'
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
const prs = await github.rest.pulls.list({
|
const prs = await github.rest.pulls.list({
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ jobs:
|
|||||||
QTWEBENGINE_DISABLE_SANDBOX: 1
|
QTWEBENGINE_DISABLE_SANDBOX: 1
|
||||||
QT_QPA_PLATFORM: "offscreen"
|
QT_QPA_PLATFORM: "offscreen"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Note: We checkout the repository at the branch that triggered the workflow
|
# Note: We checkout the repository at the branch that triggered the workflow
|
||||||
# with the entire history to ensure to match PSR's release branch detection
|
# with the entire history to ensure to match PSR's release branch detection
|
||||||
@@ -38,6 +41,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.ref_name }}
|
ref: ${{ github.ref_name }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
ssh-key: ${{ secrets.CI_DEPLOY_SSH_KEY }}
|
||||||
|
ssh-known-hosts: ${{ secrets.CI_DEPLOY_SSH_KNOWN_HOSTS }}
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Setup | Force release branch to be at workflow sha
|
- name: Setup | Force release branch to be at workflow sha
|
||||||
run: |
|
run: |
|
||||||
@@ -81,60 +91,13 @@ jobs:
|
|||||||
|
|
||||||
printf '%s\n' "Verified upstream branch has not changed, continuing with release..."
|
printf '%s\n' "Verified upstream branch has not changed, continuing with release..."
|
||||||
|
|
||||||
- name: Setup | Install Dependencies
|
- name: Semantic Version Release
|
||||||
run: |
|
|
||||||
pip install build wheel
|
|
||||||
|
|
||||||
- name: Action | Semantic Version Release
|
|
||||||
id: release
|
id: release
|
||||||
# Adjust tag with desired version if applicable.
|
env:
|
||||||
uses: python-semantic-release/python-semantic-release@v9.21.1
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
run: |
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
pip install python-semantic-release==9.* wheel build twine
|
||||||
git_committer_name: "github-actions"
|
semantic-release -vv version
|
||||||
git_committer_email: "actions@users.noreply.github.com"
|
if [ ! -d dist ]; then echo No release will be made; exit 0; fi
|
||||||
- name: Publish | Upload to GitHub Release Assets
|
twine upload dist/* -u __token__ -p $CI_PYPI_TOKEN --skip-existing
|
||||||
uses: python-semantic-release/publish-action@v9.21.1
|
semantic-release publish
|
||||||
if: steps.release.outputs.released == 'true'
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
tag: ${{ steps.release.outputs.tag }}
|
|
||||||
|
|
||||||
- name: Upload | Distribution Artifacts
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: distribution-artifacts
|
|
||||||
path: dist
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
pypi-publish:
|
|
||||||
# 1. Separate out the deploy step from the publish step to run each step at
|
|
||||||
# the least amount of token privilege
|
|
||||||
# 2. Also, deployments can fail, and its better to have a separate job if you need to retry
|
|
||||||
# and it won't require reversing the release.
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: release
|
|
||||||
if: ${{ needs.release.outputs.released == 'true' }}
|
|
||||||
|
|
||||||
environment:
|
|
||||||
name: pypi
|
|
||||||
url: https://pypi.org/p/bec-widgets
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Setup | Download Build Artifacts
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
id: artifact-download
|
|
||||||
with:
|
|
||||||
name: distribution-artifacts
|
|
||||||
path: dist
|
|
||||||
|
|
||||||
# see https://docs.pypi.org/trusted-publishers/
|
|
||||||
- name: Publish package distributions to PyPI
|
|
||||||
uses: pypa/gh-action-pypi-publish@v1.12.4
|
|
||||||
with:
|
|
||||||
packages-dir: dist
|
|
||||||
print-hash: true
|
|
||||||
verbose: true
|
|
||||||
|
|||||||
+1705
-1546
File diff suppressed because it is too large
Load Diff
+3
-3
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "bec_widgets"
|
name = "bec_widgets"
|
||||||
version = "2.3.0"
|
version = "2.4.2"
|
||||||
description = "BEC Widgets"
|
description = "BEC Widgets"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
classifiers = [
|
classifiers = [
|
||||||
@@ -71,7 +71,7 @@ include_trailing_comma = true
|
|||||||
known_first_party = ["bec_widgets"]
|
known_first_party = ["bec_widgets"]
|
||||||
|
|
||||||
[tool.semantic_release]
|
[tool.semantic_release]
|
||||||
build_command = "python -m build"
|
build_command = "pip install build wheel && python -m build"
|
||||||
version_toml = ["pyproject.toml:project.version"]
|
version_toml = ["pyproject.toml:project.version"]
|
||||||
|
|
||||||
[tool.semantic_release.commit_author]
|
[tool.semantic_release.commit_author]
|
||||||
@@ -98,7 +98,7 @@ default_bump_level = 0
|
|||||||
[tool.semantic_release.remote]
|
[tool.semantic_release.remote]
|
||||||
name = "origin"
|
name = "origin"
|
||||||
type = "github"
|
type = "github"
|
||||||
ignore_token_for_push = false
|
ignore_token_for_push = true
|
||||||
|
|
||||||
[tool.semantic_release.remote.token]
|
[tool.semantic_release.remote.token]
|
||||||
env = "GH_TOKEN"
|
env = "GH_TOKEN"
|
||||||
|
|||||||
Reference in New Issue
Block a user