Skip to content

Commit 19a7b8b

Browse files
authored
Revise trigger condition and running environment for docs.yml (#244)
* Make `docs.yml` workflow also triggered by workflow file change. * All `docs` workflow jobs run on `docs-release` environment.
1 parent 676ef3c commit 19a7b8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ on:
55
branches: [main]
66
paths:
77
- docs/**
8+
- ".github/workflows/docs.yml"
89
push:
910
branches: [main]
1011
paths:
1112
- docs/**
13+
- ".github/workflows/docs.yml"
1214
workflow_dispatch:
1315

1416
permissions:
@@ -18,6 +20,7 @@ jobs:
1820
test-deploy:
1921
if: github.event_name != 'push'
2022
runs-on: ubuntu-latest
23+
environment: docs-release
2124
steps:
2225
- uses: actions/checkout@v4
2326
with:
@@ -38,8 +41,9 @@ jobs:
3841
run: yarn build
3942

4043
deploy-precheck:
41-
runs-on: ubuntu-latest
4244
if: ${{ github.event_name != 'pull_request' }}
45+
runs-on: ubuntu-latest
46+
environment: docs-release
4347
outputs:
4448
gh-deploy-key: ${{ steps.gh-deploy-key.outputs.defined }}
4549
steps:

0 commit comments

Comments
 (0)