Skip to content

added gh-pages action #1

added gh-pages action

added gh-pages action #1

Workflow file for this run

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