From 788456226468f0890033e4c1e50d6bf73238a626 Mon Sep 17 00:00:00 2001 From: Harpo Date: Sat, 24 Feb 2024 14:40:28 -0800 Subject: [PATCH] Adds deploy workflow --- .github/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..aa0cac0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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