From 27140934d3fe93c7efda54a747838d8d6b2750dc Mon Sep 17 00:00:00 2001 From: "Chanwut (Mick) Kittivorawong" <30903997+chanwutk@users.noreply.github.com> Date: Wed, 9 Aug 2023 14:49:52 -0700 Subject: [PATCH] Add github pages (#6) --- .github/workflows/gh-pages.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..1dd7a65 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,26 @@ +name: Publish GitHub Pages + +on: + push: + branches: [ main ] + +jobs: + publish: + name: Publish GitHub Pages + runs-on: ubuntu-latest + + steps: + - name: Set up Git repository + uses: actions/checkout@v3 + + - name: Setup GitHub Pages Folder + run: | + rm -rf ./build + mkdir ./build + cp ./README.md ./build/ + + - name: Publish Website + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: 'build' + single-commit: true