Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fvln committed Aug 27, 2024
1 parent e2d2800 commit 5e09c12
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Build and Deploy
on:
push:
branches: [master]
permissions:
contents: write


jobs:
build-and-deploy:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
Expand All @@ -22,13 +22,14 @@ jobs:
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
- name: Install and Build 🔧
run: |
npm install --no-optional reveal-md
npm install --omit=optional reveal-md
mkdir build
cp -r img build/
./node_modules/.bin/reveal-md --preprocessor includes.js --css custom.css --assets-dir build --static build slides.md
touch build/.nojekyll
./node_modules/.bin/reveal-md --preprocessor ../../../includes.js --css custom.css --static build slides.md
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
FOLDER: build

0 comments on commit 5e09c12

Please sign in to comment.