diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml index 313b2a2..dbb88c5 100644 --- a/.github/workflows/deploy-gh-pages.yml +++ b/.github/workflows/deploy-gh-pages.yml @@ -1,36 +1,36 @@ # This workflow will do a clean install of node dependencies, build the source code. # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions -# name: Deploy GitHub Pages +name: Deploy GitHub Pages -# on: -# push: -# branches: [main] +on: + push: + branches: [main] -# jobs: -# publish: -# runs-on: ubuntu-latest -# steps: -# - name: Check out -# uses: actions/checkout@v2 -# - name: Generate your site -# uses: actions/setup-node@v2 -# with: -# node-version: 18.x -# - name: Install required dependencies -# run: yarn install -# - name: Building site -# run: yarn build -# - name: Publish dist folder to GitHub Pages -# # To understand how this works: https://github.com/marketplace/actions/github-pages-overwriter -# uses: rayluo/github-pages-overwriter@v1.2 -# with: -# # Optional. Default value "." means the root directory of your project will be published. -# # You can use whatever directory your project uses, for example "wwwroot". -# # Such a directory does *not* have to already exist in your repo, -# # it could be an output directory created dynamically by your static website builder. -# source-directory: dist -# # Optional. Default value "gh_pages". -# # It specifies the temporary branch which hosts the static website. -# # Each build will OVERWRITE this branch. -# target-branch: gh_pages +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Check out + uses: actions/checkout@v2 + - name: Generate your site + uses: actions/setup-node@v2 + with: + node-version: 18.x + - name: Install required dependencies + run: yarn install + - name: Building site + run: yarn build + - name: Publish dist folder to GitHub Pages + # To understand how this works: https://github.com/marketplace/actions/github-pages-overwriter + uses: rayluo/github-pages-overwriter@v1.2 + with: + # Optional. Default value "." means the root directory of your project will be published. + # You can use whatever directory your project uses, for example "wwwroot". + # Such a directory does *not* have to already exist in your repo, + # it could be an output directory created dynamically by your static website builder. + source-directory: dist + # Optional. Default value "gh_pages". + # It specifies the temporary branch which hosts the static website. + # Each build will OVERWRITE this branch. + target-branch: gh_pages