Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
portableant committed Dec 2, 2023
2 parents e5b0824 + 7bc9cdf commit c093ee9
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy-on-commit.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
folder: public

0 comments on commit c093ee9

Please sign in to comment.