Skip to content

Commit d7614f3

Browse files
committed
ci: fix build-templates workflow
1 parent 8ee2d20 commit d7614f3

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

.github/workflows/build-templates.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,11 @@ jobs:
77
matrix:
88
os: [windows-latest, ubuntu-latest]
99
runs-on: ${{ matrix.os }}
10-
permissions:
11-
contents: write
1210
permissions:
1311
contents: write
1412
env:
1513
PYTHONUTF8: ${{ matrix.os == 'windows-latest' && '1' || '' }}
1614
steps:
17-
- uses: szenius/set-timezone@v2.0
18-
with:
19-
timezoneLinux: "Asia/Shanghai"
20-
timezoneMacos: "Asia/Shanghai"
21-
timezoneWindows: "China Standard Time"
2215
- uses: szenius/set-timezone@v2.0
2316
with:
2417
timezoneLinux: "Asia/Shanghai"
@@ -51,17 +44,4 @@ jobs:
5144
env:
5245
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5346
run: |
54-
python3 ci/deploy.py - name: Configure Git
55-
run: |
56-
git config --global user.name "github-actions[bot]"
57-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
58-
- name: Deploy PDF files to build branch
59-
if: |
60-
matrix.os == 'windows-latest' &&
61-
(github.event_name == 'workflow_dispatch' ||
62-
github.event_name == 'push' && github.ref == 'refs/heads/main' ||
63-
github.event_name == 'pull_request' && github.base_ref == 'main')
64-
env:
65-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66-
run: |
67-
python3 ci/deploy.py
47+
python3 ci/deploy.py

0 commit comments

Comments
 (0)