forked from EndstoneMC/python-example-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (23 loc) · 732 Bytes
/
Copy pathpublish.yml
File metadata and controls
29 lines (23 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This workflow will publish a Python Package to PyPI when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
name: Publish
on:
release:
types: [ published ]
permissions:
contents: read
jobs:
publish:
if: github.repository == 'EndstoneMC/python-plugin-template'
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Build sdist
run: pipx run build --sdist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1