-
Notifications
You must be signed in to change notification settings - Fork 13.4k
39 lines (36 loc) · 1.02 KB
/
ci-deploy-gh-pages.yml
File metadata and controls
39 lines (36 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# .github/workflows/ci-preview-deploy.yml
name: Deploy GitHub Pages
concurrency: preview-deploy-${{ github.ref }}
on:
push:
branches:
- main
- master
- develop
jobs:
deploy-preview:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
- uses: rharkor/caching-for-turbo@v1.8
- name: Setup NodeJS
uses: ./.github/actions/setup-node
with:
node-version: 22.16.0
deno-version: 1.43.5
cache-modules: true
install: true
- name: Build
run: |
yarn turbo run build-preview
yarn turbo run .:build-preview-move
npx indexifier .preview --html --extensions .html > .preview/index.html
mv .preview ${{ github.ref_name }}
mkdir .preview
mv ${{ github.ref_name }} .preview
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .preview
keep_files: true