-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 1.15 KB
/
github-pages.yaml
File metadata and controls
36 lines (36 loc) · 1.15 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
name: GitHub Pages
on:
workflow_dispatch:
inputs:
trigger:
description: Type m to triggre manual jobs
required: false
default: ''
push:
jobs:
github-pages:
name: Deploy to GitHub pages
if: github.event.inputs.trigger == ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: ci
with:
path: |
~/.npm
~/.node
~/.m2/repository
!~/.m2/repository/com/gituhb/daggerok
key: ${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/pom.xml', '**/package.json', '**/package-lock.json') }}
- uses: actions/setup-node@v3
with:
node-version: 18.4.0
- run: npm --prefix 01-getting-starter i -E
- run: npm --prefix 01-getting-starter run github-pages
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages # The branch the action should deploy to.
#folder: 01-getting-starter/ # The folder the action should deploy.
folder: 01-getting-starter/build # The folder the action should deploy.