From 7bc9cdf71ecfa6377747d150fddb17be64850633 Mon Sep 17 00:00:00 2001 From: Daniel Pett Date: Sat, 2 Dec 2023 22:29:05 +0000 Subject: [PATCH] Create deploy-on-commit.yml --- .github/workflows/deploy-on-commit.yml | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/deploy-on-commit.yml diff --git a/.github/workflows/deploy-on-commit.yml b/.github/workflows/deploy-on-commit.yml new file mode 100644 index 000000000..cc063ca75 --- /dev/null +++ b/.github/workflows/deploy-on-commit.yml @@ -0,0 +1,37 @@ +name: Build and Deploy this site Site + +on: + push: + branches: + - main + workflow_dispatch: + inputs: + logLevel: + description: 'Log level' + required: true + default: 'warning' + tags: + description: 'Run Gatsby deploy manually' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Gatsby + run: | + npm install + + - name: Build Gatsby site + run: | + npm run build + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4.4.3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + folder: public