Skip to content

Commit 47c1a8b

Browse files
committed
gh-pages
1 parent 760ae5b commit 47c1a8b

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- workshop # Set a branch name to trigger deployment
7+
pull_request:
8+
workflow_dispatch: {}
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
env:
16+
DTC_HEADLES: true
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: setup
20+
run: chmod +x dtcw
21+
- name: generateSite
22+
run: ./dtcw generateSite
23+
- name: copyToPublic
24+
run: cp -r ./build/microsite/output ./public
25+
- name: Deploy
26+
uses: peaceiris/actions-gh-pages@v3
27+
# if: ${{ github.ref == 'refs/heads/main' }}
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_dir: ./public

0 commit comments

Comments
 (0)