diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index b17479f..825cd67 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -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 🛎️ @@ -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 \ No newline at end of file