1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-05-03 13:24:20 +02:00

Compare commits

...

12 Commits

Author SHA1 Message Date
semantic-release 58f01fb3a2 2.4.2
Automatically generated by python-semantic-release
2025-05-19 15:04:48 +00:00
wakonig_k 1e344eacb7 fix: push release using GH_token 2025-05-19 17:04:04 +02:00
semantic-release 34002fa51a 2.4.1
Automatically generated by python-semantic-release
2025-05-19 14:34:58 +00:00
wakonig_k a00d510a75 fix: skip actions on new tags 2025-05-19 16:34:19 +02:00
semantic-release 120faf9523 2.4.0
Automatically generated by python-semantic-release
2025-05-19 13:53:08 +00:00
wakonig_k d7bd61f69e ci: use custom semver action 2025-05-19 15:50:24 +02:00
wakonig_k 94bcfff724 ci: add known hosts 2025-05-19 15:10:38 +02:00
wakonig_k a17e7a0d52 ci: add deploy ssh key to release job 2025-05-19 15:02:54 +02:00
wakonig_k 7f67d28887 ci: use ssh key for push 2025-05-19 14:39:01 +02:00
wakonig_k 52d8e4b332 ci: build with ssh key 2025-05-19 14:26:17 +02:00
wakonig_k dea2b44e6a ci: fix job permissions for release 2025-05-19 13:47:25 +02:00
wakonig_k dc70ea6dfb ci: fix missing build dependencies 2025-05-19 13:32:16 +02:00
4 changed files with 1728 additions and 1606 deletions
+1 -1
View File
@@ -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({
+19 -56
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -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"