Skip to content

Commit

Permalink
Create jekyll-gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Maleehak authored Apr 20, 2024
1 parent e2141d3 commit 7380410
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Frontend to Github Pages

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@master
with:
persist-credentials: false
submodules: true # TODO remove this if not using submodules in Hexo

- name: Install 🔧
run: npm --prefix ./frontend/briefme install

- name: Build 🏗️
run: |
npm --prefix ./frontend/briefme clean
npm --prefix ./frontend/briefme build
- name: Deploy to GH Pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.SECRET_BRIEFME_WORKFLOW }}
publish_dir: public

0 comments on commit 7380410

Please sign in to comment.