github pages test #2
Workflow file for this run
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: publish | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install pug-cli & build | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- run: npm install pug-cli -g | |
- run: pug --pretty -o dist --basedir src -- src/index.pug | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: deploy to github pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |