Add link to talk #168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache Node modules | |
uses: actions/cache@v2 | |
with: | |
path: ~/.npm | |
key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
restore-keys: | | |
npm-${{ runner.os }}- | |
npm- | |
- name: Install Node modules | |
run: npm install | |
- name: Sass | |
run: npm run sass | |
- name: Sass Reveal.js | |
run: npm run sass-revealjs | |
- name: Eleventy | |
run: | | |
npx eleventy --output='_site/' --pathprefix='/' | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: ./_site | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
cname: servo.org |