Add Small Shelf Games: No Mercy post #8
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: Build and Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Check out the generator | |
- uses: "actions/checkout@v2" | |
with: | |
repository: "lixquid/node-blog-generator" | |
submodules: true | |
# Update the generator's blog submodule to the latest commit | |
- name: "Update blog submodule" | |
run: "cd blog && git reset --hard origin/master" | |
# Set up Node.js | |
- name: "Set up Node.js" | |
uses: "actions/setup-node@v4" | |
# Install dependencies | |
- name: "Install dependencies" | |
run: "yarn install" | |
# Build | |
- name: "Build" | |
run: "yarn build" | |
# Upload artifact | |
- name: "Upload artifact" | |
uses: "actions/upload-pages-artifact@v3" | |
with: | |
path: out/dist | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: "Deploy to GitHub Pages" | |
uses: "actions/deploy-pages@v4" |