From 9aaa6f7cb01d1c296ccff8849229852b5d4da3a1 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Thu, 7 Mar 2024 13:49:38 +0000 Subject: [PATCH] Try building inside the github action --- .gitea/workflows/build-and-copy.yaml | 23 +++++++++++++++++++++++ .gitea/workflows/update.yaml | 1 - 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/build-and-copy.yaml diff --git a/.gitea/workflows/build-and-copy.yaml b/.gitea/workflows/build-and-copy.yaml new file mode 100644 index 0000000..52de24b --- /dev/null +++ b/.gitea/workflows/build-and-copy.yaml @@ -0,0 +1,23 @@ +name: Build and copy to prod +on: + push: + +jobs: + build-and-copy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version: 20.x + - name: Install dependencies 📦 + run: yarn install --frozen-lockfile + - name: Build eleventy + run: yarn build + env: + NODE_ENV: production + OMNIVORE_API_KEY: ${{ secrets.OMNIVORE_API_KEY }} + + \ No newline at end of file diff --git a/.gitea/workflows/update.yaml b/.gitea/workflows/update.yaml index 710c00a..25c4ad8 100644 --- a/.gitea/workflows/update.yaml +++ b/.gitea/workflows/update.yaml @@ -1,6 +1,5 @@ name: Build on push on: - push: schedule: - cron: '@hourly'