forked from opensacorg/learning-blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) 路 1021 Bytes
/
Copy pathdeploy-gh-pages.yml
File metadata and controls
32 lines (30 loc) 路 1021 Bytes
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
name: Deploy Next.js static site to GitHub pages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 21.x ]
steps:
- uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Build Next.js static site
run: |
npm install --prefix Learning-Blocks-No-Docker-Version/pyorl_Front/pyorl
npm run build-only --prefix Learning-Blocks-No-Docker-Version/pyorl_Front/pyorl
- name: Ignore Jekyll
run: |
touch Learning-Blocks-No-Docker-Version/pyorl_Front/pyorl/dist/.nojekyll
- name: Deploy 馃殌
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: Learning-Blocks-No-Docker-Version/pyorl_Front/pyorl/dist
git-config-name: Automated
git-config-email: hello@opensac.org
branch: gh-pages