2.0.0 #16
Workflow file for this run
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: Release | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
release-pypi: | |
name: upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: PyPI | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: setup rye | |
uses: sksat/[email protected] | |
with: | |
version: 0.13.0 | |
- name: Install dependencies with rye | |
run: | | |
rye sync | |
- name: Build | |
run: | | |
rye build | |
- name: Publish package | |
uses: pypa/[email protected] | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} | |
aur-update: | |
name: publish to AUR | |
needs: release-pypi | |
runs-on: ubuntu-latest | |
environment: AUR | |
concurrency: | |
group: "aur" | |
cancel-in-progress: true | |
steps: | |
- name: Sleep to account for delay in PyPI package availability | |
run: sleep 120 | |
- uses: actions/checkout@v3 | |
- uses: loqusion/aur-publish-action@main | |
with: | |
ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | |
package-name: hyprshade |