-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.2 KB
/
publish.yml
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
47
48
49
50
51
52
53
54
55
56
57
---
name: Publish delb
on:
push:
tags: ["*"]
jobs:
build-and-test:
uses: ./.github/workflows/quality-checks.yml
with:
ref: ${{ github.ref }}
pypi:
name: Publish to the cheeseshop
needs: ["build-and-test"]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/delb
permissions:
id-token: write
steps:
- name: Download package
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
github:
name: Create a Github release
needs: ["build-and-test"]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- uses: actions/setup-python@v5
with:
cache: pip
python-version: 3.x
- uses: extractions/setup-just@v2
- run: just docs
- run: pip install panflute pypandoc sphinx
- run: >-
python .github/scripts/make-github-release.py ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
...