Skip to content

Update GH Actions (#90) #32

Update GH Actions (#90)

Update GH Actions (#90) #32

Workflow file for this run

name: Publish CEmu to PyPI
on:
workflow_dispatch:
push:
jobs:
publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
environment:
name: hugsy
url: https://pypi.org/p/cemu
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Requirements
run: |
python -m pip install --upgrade build wheel
- name: Build
run: |
python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
print-hash: true