Skip to content

Commit

Permalink
Change to use GitHub Actions / Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Lixquid committed May 19, 2024
1 parent 1cd154f commit 65fff4e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .build.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
# Check out the generator
- uses: "actions/checkout@v2"
with:
name: "lixquid/node-blog-generator"
submodules: true
# Update the generator's blog submodule to the latest commit
- name: "Update blog submodule"
run: "cd node-blog-generator/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
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: "Deploy to GitHub Pages"
uses: "actions/deploy-pages@v4"

0 comments on commit 65fff4e

Please sign in to comment.