Skip to content

Commit

Permalink
added gh-pages action
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmueller committed Nov 26, 2024
1 parent 366cce8 commit 50d553f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: GitHub Pages

on:
push:
branches:
- main # Set a branch name to trigger deployment
pull_request:
workflow_dispatch: {}

jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
DTC_HEADLES: true
steps:
- uses: actions/checkout@v3
- name: setup
run: chmod +x dtcw
- name: generateSite
run: ./dtcw generateSite
- name: copyToPublic
run: cp -r ./build/microsite/output ./public
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
# if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

0 comments on commit 50d553f

Please sign in to comment.