File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release theme to PyPI
2+
3+ permissions :
4+ contents : write
5+ id-token : write
6+
7+ on :
8+ push :
9+ tags :
10+ - v2.*
11+
12+ jobs :
13+ build :
14+ name : build dist files
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - uses : actions/setup-python@v5
21+ with :
22+ python-version : 3.11
23+
24+ - name : install build
25+ run : python -m pip install --upgrade build
26+
27+ - name : build dist
28+ run : python -m build
29+
30+ - uses : actions/upload-artifact@v4
31+ with :
32+ name : artifacts
33+ path : dist/*
34+ if-no-files-found : error
35+
36+ publish :
37+ environment :
38+ name : pypi-release
39+ url : https://pypi.org/p/livereload
40+
41+ name : release to pypi
42+ needs : build
43+ runs-on : ubuntu-latest
44+
45+ steps :
46+ - uses : actions/download-artifact@v4
47+ with :
48+ name : artifacts
49+ path : dist
50+
51+ - name : Push build artifacts to PyPI
52+ uses : pypa/gh-action-pypi-publish@release/v1
53+
54+ release :
55+ name : write release note
56+ runs-on : ubuntu-latest
57+ needs : publish
58+
59+ steps :
60+ - uses : actions/checkout@v4
61+ with :
62+ fetch-depth : 0
63+ - uses : actions/setup-node@v4
64+ with :
65+ node-version : 18
66+ - run : npx changelogithub --no-group
67+ continue-on-error : true
68+ env :
69+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments