Skip to content

Commit

Permalink
ci: update website flow deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Romakita committed Mar 3, 2024
1 parent 58f6d61 commit 360fc65
Show file tree
Hide file tree
Showing 28 changed files with 25,503 additions and 18,749 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,29 +106,9 @@ jobs:
package.json
packages/*/package.json
publish-pages:
runs-on: ubuntu-latest
needs: deploy-packages
if: ${{ github.event_name != 'pull_request' && (contains(github.ref, 'master') || contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc')) }}

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/download-artifact@v2
with:
name: packages
- name: Install dependencies
run: yarn install --immutable
- 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-cli/actions/workflows/website.yml/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-H 'Authorization: Bearer ${{secrets.GH_TOKEN}}' \
--data '{"ref": "production"}'
38 changes: 38 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Website

on:
workflow_dispatch:

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

jobs:
publish-docs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --immutable --network-timeout 500000
- name: Build pages
env:
CI: true
run: yarn docs:build
- name: Publish pages
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn docs:publish

10 changes: 10 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
api
.vuepress/public/api.json


.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/cache
!.yarn/sdks
!.yarn/versions
Loading

0 comments on commit 360fc65

Please sign in to comment.