Skip to content

Commit

Permalink
ci: fix website deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Feb 18, 2024
1 parent 0fec9ee commit 5306644
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 36 deletions.
34 changes: 6 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -273,31 +273,9 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
run: yarn release
publish-docs:
runs-on: ubuntu-latest
needs: deploy-packages
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
with:
ref: "production"
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --immutable --network-timeout 500000
- name: Build pages
env:
CI: true
run: yarn api:build && yarn vuepress:docs:build
- name: Publish pages
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn docs:publish
- name: "Trigger Website workflow"
run: |
curl -X POST https://api.github.com/repos/tsedio/tsed/actions/workflows/website.yml/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H 'Authorization: Bearer ${{secrets.GH_TOKEN}}' \
--data '{"ref": "production"}'
9 changes: 7 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ name: Website
on:
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
publish-docs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -34,7 +39,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"@swc/core": "1.3.41",
"@swc/helpers": "0.4.14",
"@swc/jest": "0.2.20",
"@tsed/monorepo-utils": "2.1.0",
"@tsed/monorepo-utils": "2.1.1",
"@tsed/ts-doc": "4.0.14",
"@types/axios": "0.14.0",
"@types/chai": "4.3.0",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6856,9 +6856,9 @@ __metadata:
languageName: unknown
linkType: soft

"@tsed/monorepo-utils@npm:2.1.0":
version: 2.1.0
resolution: "@tsed/monorepo-utils@npm:2.1.0"
"@tsed/monorepo-utils@npm:2.1.1":
version: 2.1.1
resolution: "@tsed/monorepo-utils@npm:2.1.1"
dependencies:
"@samverschueren/stream-to-observable": "npm:>=0.3.1"
"@typescript-eslint/typescript-estree": "npm:>=6.20.0"
Expand All @@ -6885,7 +6885,7 @@ __metadata:
semantic-release: ">=19"
bin:
monorepo: bin/monorepo.js
checksum: 10/f906f747deb85e4386b9d2864d3e6f94e564432164f5b8b442c8c24a32f27732bc2640c75f0d800993da88e625cd581b39b2574efbac4a5ca1eef3156d3a410c
checksum: 10/a97ce2a04535e79a7763c8952d78cbac9c560c24d653cf6248766f77497c9eb35abb3bed0510ce3d98f6d26624007eff1d30df2a5d68916b1e1d7dc9d0c43ab0
languageName: node
linkType: hard

Expand Down Expand Up @@ -7641,7 +7641,7 @@ __metadata:
"@swc/helpers": "npm:0.4.14"
"@swc/jest": "npm:0.2.20"
"@tsed/logger": "npm:>=6.2.2"
"@tsed/monorepo-utils": "npm:2.1.0"
"@tsed/monorepo-utils": "npm:2.1.1"
"@tsed/ts-doc": "npm:4.0.14"
"@types/axios": "npm:0.14.0"
"@types/chai": "npm:4.3.0"
Expand Down

0 comments on commit 5306644

Please sign in to comment.