From 04ef1a98eba214555afaa09d5b91770ad79e3848 Mon Sep 17 00:00:00 2001 From: Max Wolfs Date: Sun, 13 Oct 2024 21:32:32 +0200 Subject: [PATCH] Add build and deploy to gh-pages Signed-off-by: Max Wolfs --- .github/workflows/build_and_deploy.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/build_and_deploy.yml diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml new file mode 100644 index 0000000..a971301 --- /dev/null +++ b/.github/workflows/build_and_deploy.yml @@ -0,0 +1,18 @@ +name: Gatsby Publish + +on: + workflow_dispatch: + schedule: + - cron: "0 0 * * *" + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: enriikke/gatsby-gh-pages-action@v2 + with: + access-token: ${{ secrets.ACCESS_TOKEN }}