-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (39 loc) · 1.03 KB
/
release.yml
File metadata and controls
46 lines (39 loc) · 1.03 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/sphinx-breeze-theme
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Set up Node.js
uses: actions/setup-node@v5
with:
node-version: 24
- name: Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v10
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Package
if: steps.release.outputs.released == 'true'
run: |
python -m pip install --upgrade build
python -m build
- name: Publish Package to PyPI
if: steps.release.outputs.released == 'true'
uses: pypa/gh-action-pypi-publish@release/v1