-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (47 loc) · 1.31 KB
/
publish.yaml
File metadata and controls
61 lines (47 loc) · 1.31 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is a basic workflow to help you get started with Actions
name: Publish
on:
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
# We want to hook up the mindersec/minder repo to trigger this action
# on pushes to the main branch under docs.
workflow_dispatch:
# Run once a day until further automation is wired up.
schedule:
- cron: "15 0 * * *"
jobs:
build:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout docs
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
repository: mindersec/minder
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: 24
- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build
- name: Deploy to GitHub Pages
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write
pages: write
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4