-
Notifications
You must be signed in to change notification settings - Fork 19
36 lines (36 loc) · 1.04 KB
/
build-deploy.yml
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
name: 'Build and deploy'
on:
workflow_dispatch:
push:
branches:
- main
jobs:
docs-build:
uses: kube-green/kube-green.github.io/.github/workflows/docs-build.yml@main
deploy-github-pages:
needs: docs-build
runs-on: ubuntu-latest
strategy:
matrix:
node_version: ["lts/*"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: Get cache build
uses: actions/cache@v4
with:
path: build
key: build-website-${{ github.sha }}-${{ github.run_id }}
- uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com