Skip to content

Commit

Permalink
Adds workflow, removes Jekyll, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrythall committed Apr 2, 2024
1 parent 25da44b commit 5a8b6ea
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/deploy-to-ghpages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
pull_request:

jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"

- name: Persist npm cache
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}

- name: Persist Eleventy .cache
uses: actions/cache@v3
with:
path: ./.cache
key: ${{ runner.os }}-eleventy-fetch-cache

- run: npm install
- run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
Empty file added .nojekyll
Empty file.
1 change: 1 addition & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ module.exports = (eleventyConfig) => {
"src/content/sponsors/*.{png,jpg,jpeg,svg}": "sponsors/",
"src/content/places/*.{png,jpg,jpeg,webp}": "venue/",
});
eleventyConfig.addPassthroughCopy("CNAME");

/*
Setup watch targets
Expand Down

0 comments on commit 5a8b6ea

Please sign in to comment.