diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b092359 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,24 @@ +name: Build and Deploy + +on: + push: + branches: auto-deploy + +jobs: + build-and-deploy: + name: Build and deploy Gatsby site + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2.3.1 + + - name: Install Node.js + uses: actions/setup-node@v1 + with: + node-version: '21.7.3' + + - name: Install Project Dependencies + run: npm ci + + - name: Build & deploy + run: npm run deploy