Skip to content

Commit 5306644

Browse files
committed
ci: fix website deployment
1 parent 0fec9ee commit 5306644

File tree

4 files changed

+19
-36
lines changed

4 files changed

+19
-36
lines changed

.github/workflows/build.yml

+6-28
Original file line numberDiff line numberDiff line change
@@ -273,31 +273,9 @@ jobs:
273273
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
274274
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
275275
run: yarn release
276-
277-
publish-docs:
278-
runs-on: ubuntu-latest
279-
needs: deploy-packages
280-
strategy:
281-
matrix:
282-
node-version: [18.x]
283-
284-
steps:
285-
- uses: actions/checkout@v3
286-
with:
287-
ref: "production"
288-
- name: Use Node.js ${{ matrix.node-version }}
289-
uses: actions/setup-node@v3
290-
with:
291-
node-version: ${{ matrix.node-version }}
292-
- name: Install dependencies
293-
run: yarn install --immutable --network-timeout 500000
294-
- name: Build pages
295-
env:
296-
CI: true
297-
run: yarn api:build && yarn vuepress:docs:build
298-
- name: Publish pages
299-
env:
300-
CI: true
301-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
302-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
303-
run: yarn docs:publish
276+
- name: "Trigger Website workflow"
277+
run: |
278+
curl -X POST https://api.github.com/repos/tsedio/tsed/actions/workflows/website.yml/dispatches \
279+
-H 'Accept: application/vnd.github.everest-preview+json' \
280+
-H 'Authorization: Bearer ${{secrets.GH_TOKEN}}' \
281+
--data '{"ref": "production"}'

.github/workflows/website.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ name: Website
66
on:
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
914
jobs:
1015
publish-docs:
1116
runs-on: ubuntu-latest
1217
strategy:
1318
matrix:
14-
node-version: [18.x]
19+
node-version: [20.x]
1520
steps:
1621
- uses: actions/checkout@v2
1722
- name: Use Node.js ${{ matrix.node-version }}
@@ -34,7 +39,7 @@ jobs:
3439
runs-on: ubuntu-latest
3540
strategy:
3641
matrix:
37-
node-version: [18.x]
42+
node-version: [20.x]
3843
steps:
3944
- uses: actions/checkout@v2
4045
- name: Use Node.js ${{ matrix.node-version }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"@swc/core": "1.3.41",
119119
"@swc/helpers": "0.4.14",
120120
"@swc/jest": "0.2.20",
121-
"@tsed/monorepo-utils": "2.1.0",
121+
"@tsed/monorepo-utils": "2.1.1",
122122
"@tsed/ts-doc": "4.0.14",
123123
"@types/axios": "0.14.0",
124124
"@types/chai": "4.3.0",

yarn.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -6856,9 +6856,9 @@ __metadata:
68566856
languageName: unknown
68576857
linkType: soft
68586858

6859-
"@tsed/monorepo-utils@npm:2.1.0":
6860-
version: 2.1.0
6861-
resolution: "@tsed/monorepo-utils@npm:2.1.0"
6859+
"@tsed/monorepo-utils@npm:2.1.1":
6860+
version: 2.1.1
6861+
resolution: "@tsed/monorepo-utils@npm:2.1.1"
68626862
dependencies:
68636863
"@samverschueren/stream-to-observable": "npm:>=0.3.1"
68646864
"@typescript-eslint/typescript-estree": "npm:>=6.20.0"
@@ -6885,7 +6885,7 @@ __metadata:
68856885
semantic-release: ">=19"
68866886
bin:
68876887
monorepo: bin/monorepo.js
6888-
checksum: 10/f906f747deb85e4386b9d2864d3e6f94e564432164f5b8b442c8c24a32f27732bc2640c75f0d800993da88e625cd581b39b2574efbac4a5ca1eef3156d3a410c
6888+
checksum: 10/a97ce2a04535e79a7763c8952d78cbac9c560c24d653cf6248766f77497c9eb35abb3bed0510ce3d98f6d26624007eff1d30df2a5d68916b1e1d7dc9d0c43ab0
68896889
languageName: node
68906890
linkType: hard
68916891

@@ -7641,7 +7641,7 @@ __metadata:
76417641
"@swc/helpers": "npm:0.4.14"
76427642
"@swc/jest": "npm:0.2.20"
76437643
"@tsed/logger": "npm:>=6.2.2"
7644-
"@tsed/monorepo-utils": "npm:2.1.0"
7644+
"@tsed/monorepo-utils": "npm:2.1.1"
76457645
"@tsed/ts-doc": "npm:4.0.14"
76467646
"@types/axios": "npm:0.14.0"
76477647
"@types/chai": "npm:4.3.0"

0 commit comments

Comments
 (0)