Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Check pull requests for changelog updates
on:
- pull_request

permissions:
contents: read

jobs:
check_changelog_updates:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Continuous Integration
on:
- push

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
Expand Down
93 changes: 45 additions & 48 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,36 +13,33 @@ on:
workflow_dispatch:

release:
types: [released]
types: [ released ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: zospy_dist
path: "dist/"
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: zospy_dist
path: "dist/"

publish_to_pypi:
name: Publish to PyPI
needs: build
Expand All @@ -53,16 +50,16 @@ jobs:
id-token: write

steps:
- name: Download dist
uses: actions/download-artifact@v4
with:
name: zospy_dist
path: dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
- name: Download dist
uses: actions/download-artifact@v4
with:
name: zospy_dist
path: dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__

upload_to_github:
name: Upload to GitHub
runs-on: ubuntu-latest
Expand All @@ -73,20 +70,20 @@ jobs:
contents: write

steps:
- name: Download dist
uses: actions/download-artifact@v4
with:
name: zospy_dist
path: dist
- name: Upload wheels to GitHub release
uses: svenstaro/upload-release-action@2.9.0
with:
tag: ${{ github.ref }}
file: "dist/*.whl"
file_glob: true
- name: Upload dist to GitHub release
uses: svenstaro/upload-release-action@2.9.0
with:
tag: ${{ github.ref }}
file: "dist/*.tar.gz"
file_glob: true
- name: Download dist
uses: actions/download-artifact@v4
with:
name: zospy_dist
path: dist
- name: Upload wheels to GitHub release
uses: svenstaro/upload-release-action@2.9.0
with:
tag: ${{ github.ref }}
file: "dist/*.whl"
file_glob: true
- name: Upload dist to GitHub release
uses: svenstaro/upload-release-action@2.9.0
with:
tag: ${{ github.ref }}
file: "dist/*.tar.gz"
file_glob: true
102 changes: 51 additions & 51 deletions .github/workflows/python-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,33 @@ on:
workflow_dispatch:

release:
types: [prereleased]
types: [ prereleased ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: zospy_dist
path: "dist/"
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Upload dist
uses: actions/upload-artifact@v4
with:
name: zospy_dist
path: "dist/"

publish_to_testpypi:
name: Publish to TestPyPI
runs-on: ubuntu-latest
Expand All @@ -50,19 +50,19 @@ jobs:
id-token: write

steps:
- name: Download dist
uses: actions/download-artifact@v4
with:
name: zospy_dist
path: dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
repository-url: https://test.pypi.org/legacy/
# If the release is already present, overwrite it
skip-existing: true
- name: Download dist
uses: actions/download-artifact@v4
with:
name: zospy_dist
path: dist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
repository-url: https://test.pypi.org/legacy/
# If the release is already present, overwrite it
skip-existing: true

publish_to_github:
runs-on: ubuntu-latest
if: github.event_name == 'release'
Expand All @@ -72,20 +72,20 @@ jobs:
contents: write

steps:
- name: Download dist
uses: actions/download-artifact@v4
with:
name: zospy_dist
path: dist
- name: Upload wheels to GitHub release
uses: svenstaro/upload-release-action@2.9.0
with:
tag: ${{ github.ref }}
file: "dist/*.whl"
file_glob: true
- name: Upload dist to GitHub release
uses: svenstaro/upload-release-action@2.9.0
with:
tag: ${{ github.ref }}
file: "dist/*.tar.gz"
file_glob: true
- name: Download dist
uses: actions/download-artifact@v4
with:
name: zospy_dist
path: dist
- name: Upload wheels to GitHub release
uses: svenstaro/upload-release-action@2.9.0
with:
tag: ${{ github.ref }}
file: "dist/*.whl"
file_glob: true
- name: Upload dist to GitHub release
uses: svenstaro/upload-release-action@2.9.0
with:
tag: ${{ github.ref }}
file: "dist/*.tar.gz"
file_glob: true
Loading