Skip to content

Commit

Permalink
Create DeployPage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rcalxrc08 authored Oct 4, 2023
1 parent 54c0996 commit e133ca3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/DeployPage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Deploy
on:
push:
branches:
- master
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: 1.5
- run: julia -e '
import Pkg; Pkg.activate("page/Project.toml"); Pkg.instantiate();
Pkg.add(["NodeJS", "PkgPage]);
using NodeJS;
run(`$(npm_cmd()) install highlight.js purgecss`);
import PkgPage;
PkgPage.optimize(input="page", output="page")'
- run: touch page/__site/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
BRANCH: gh-pages
FOLDER: page/__site

0 comments on commit e133ca3

Please sign in to comment.