-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d535084
commit 251e28a
Showing
1 changed file
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/[email protected] | ||
# 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/[email protected] | ||
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 |