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
2+
3+ on :
4+ push :
5+ branches :
6+ - release
7+
8+ permissions :
9+ contents : write # to be able to publish a GitHub release
10+ pull-requests : write # to be able to comment on released pull requests
11+ id-token : write # to enable use of OIDC for npm provenance
12+
13+ jobs :
14+ release :
15+ name : Release
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ # Step 1: Checkout the repository
20+ - name : Checkout Code
21+ uses : actions/checkout@v3
22+
23+ # Step 2: Set up Node.js
24+ - name : Setup Node.js
25+ uses : actions/setup-node@v3
26+ with :
27+ node-version : 21
28+ cache : " npm"
29+
30+ # Step 3: Install dependencies
31+ - name : Install Dependencies
32+ run : npm ci
33+
34+ # Step 4: Run semantic-release
35+ - name : Run Semantic Release
36+ env :
37+ GH_TOKEN : ${{ secrets.GH_TOKEN }}
38+ run : npx semantic-release --assets "./docs/**/*"
Original file line number Diff line number Diff line change 1+ name : Validate
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - develop
7+ - release
8+
9+ jobs :
10+ format :
11+ name : Format Check
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ # Step 1: Checkout the repository
16+ - name : Checkout Code
17+ uses : actions/checkout@v3
18+
19+ # Step 2: Set up Python
20+ - name : Set up Python
21+ uses : actions/setup-python@v4
22+ with :
23+ python-version : 3.12
24+
25+ # Step 3: Install dependencies
26+ - name : Install dependencies
27+ run : |
28+ pip install pipenv
29+ pipenv install --dev
30+
31+ # Step 4: Run ruff check
32+ - name : Run ruff check
33+ run : pipenv run ruff check .
Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ name = "pypi"
77ruff = " *"
88pyandoc = " *"
99odfpy = " *"
10- pywin32 = " *"
1110pandoc = " *"
11+ pywin32 = { version = " *" , markers = " sys_platform == 'win32'" }
1212
1313[dev-packages ]
1414ruff = " *"
1515
1616[requires ]
17- python_version = " 3.12"
17+ python_version = " 3.12"
Original file line number Diff line number Diff line change 11export default {
22 branches : [ "release" ] ,
33 plugins : [
4+ "@semantic-release/github" ,
5+ "@semantic-release/changelog" ,
46 [
57 "@semantic-release/commit-analyzer" ,
68 {
@@ -47,8 +49,6 @@ export default {
4749 npmPublish : false ,
4850 } ,
4951 ] ,
50- "@semantic-release/github" ,
51- "@semantic-release/changelog" ,
5252 [
5353 "@semantic-release/git" ,
5454 {
You can’t perform that action at this time.
0 commit comments