Skip to content

Commit

Permalink
Re-added deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
TessavWalstijn committed Nov 4, 2023
1 parent d535084 commit 251e28a
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/deploy-gh-pages.yml
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

0 comments on commit 251e28a

Please sign in to comment.