Skip to content

Commit

Permalink
📰 GitHub Pages deployment (#13)
Browse files Browse the repository at this point in the history
# Pages
Adds deploy workflow to build from latest main and deploy built site to
GitHub Pages

Closes #9
  • Loading branch information
mrharpo authored Feb 24, 2024
2 parents 6f5011e + 7884562 commit f819038
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 🏭 Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: write

jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v4

- name: 🛠️ Install and Build
run: cd datafactorio-site && npm run build

- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: datafactorio-site/dist

0 comments on commit f819038

Please sign in to comment.