We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 760ae5b commit 47c1a8bCopy full SHA for 47c1a8b
1 file changed
.github/workflows/gh-pages.yml
@@ -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