This repository has been archived by the owner on Feb 4, 2025. It is now read-only.
[QI2-1396] Add issue templates (#74) #42
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
name: Releases | |
on: | |
push: | |
branches: | |
- master | |
release: | |
types: | |
- created | |
jobs: | |
docs-deploy: | |
name: Deploy docs | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: qutech-delft/github-actions/actions/docs/sphinx-docs-deploy@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
python-build: | |
name: Build Python package | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: qutech-delft/github-actions/actions/python/poetry-build@master | |
python-deploy: | |
name: Deploy Python package | |
runs-on: "ubuntu-latest" | |
needs: python-build | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
# Publishing the package | |
- name: Publish distribution 📦 to Test PyPI | |
if: github.ref == 'refs/heads/master' | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
repository-url: https://test.pypi.org/legacy/ | |
verbose: true | |
- name: Publish distribution 📦 to PyPI | |
if: github.event_name == 'release' && github.event.action == 'created' | |
uses: pypa/gh-action-pypi-publish@release/v1 |