Skip to content

Release

Release #9

Workflow file for this run

name: Release
on:
release:
types: [published]
workflow_dispatch:
inputs:
pypi:
description: Publish to PyPI
default: true
type: boolean
required: false
permissions:
contents: read
jobs:
release-pypi:
name: upload release to PyPI
if: ${{ inputs.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:
- uses: actions/checkout@v3
- uses: loqusion/aur-publish-action@main
with:
ssh-private-key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
package-name: hyprshade