Skip to content

Commit

Permalink
Simplified publish workflow (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
underoot authored Feb 25, 2024
1 parent 6c130ea commit cb3f106
Show file tree
Hide file tree
Showing 5 changed files with 4,487 additions and 29 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/build.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
runs-on: ubuntu-22.04
needs: build
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Deploy
uses: actions/deploy-pages@v4
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.vscode/
.DS_Store
_site/
node_modules/
package-lock.json

# OS X
.DS_Store
Loading

0 comments on commit cb3f106

Please sign in to comment.