diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/build.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..160574a06 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build Pages by ydh + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Move directory + run: | + to_move=$(echo *) + mkdir -p _site/v1 + mv $to_move _site/v1 + cp .github/CNAME _site/CNAME + + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + publish_dir: ./_site + github_token: ${{ secrets.GITHUB_TOKEN }} |
