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