From 67ee513012833c9f39a8e763d135ccb0f6efb383 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Tue, 7 Jan 2025 12:57:37 +0000 Subject: [PATCH] Update Forgejo actions --- .forgejo/workflows/publish.yaml | 33 +++++++-------------------------- .github/workflows/publish.yml | 1 - 2 files changed, 7 insertions(+), 27 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index fdc1dbaf..990ec936 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -14,44 +14,25 @@ on: jobs: build: runs-on: docker - env: - HUGO_VERSION: 0.125.4 - PAGEFIND_VERSION: 1.1.0 - TASK_VERSION: 3.36.0 - RESTIC_VERSION: 0.16.4 steps: - - name: Install Hugo CLI - run: | - wget -q -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \ - && dpkg -i ${{ runner.temp }}/hugo.deb - - name: Install Pagefind CLI - run: | - wget -q -O ${{ runner.temp }}/pagefind.tar.gz https://github.com/CloudCannon/pagefind/releases/download/v${PAGEFIND_VERSION}/pagefind-v${PAGEFIND_VERSION}-x86_64-unknown-linux-musl.tar.gz \ - && tar -xpf ${{ runner.temp }}/pagefind.tar.gz pagefind \ - && mv pagefind /usr/local/bin/pagefind - - name: Install Task CLI - run: | - wget -q -O ${{ runner.temp }}/task.tar.gz https://github.com/go-task/task/releases/download/v${TASK_VERSION}/task_linux_amd64.tar.gz \ - && tar -xpf ${{ runner.temp }}/task.tar.gz task \ - && mv task /usr/local/bin/task - name: Checkout uses: actions/checkout@v3 with: - path: ./www.byjp.me submodules: recursive - name: Cache Hugo persistent info - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: hugo-persistent-cache with: path: /tmp/hugo - key: ${{ env.cache-name }} - name: Build site - working-directory: ./www.byjp.me - run: task build + uses: jphastings/hugo-tasks + # TODO: Move site - name: Build Gemini capsule - working-directory: ./www.byjp.me - run: task gemini-reduce + uses: jphastings/hugo-tasks + with: + tasks: gemini-reduce + # TODO: Move gemini diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 09089275..2ba99ddd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,6 @@ jobs: HUGO_VERSION: 0.125.4 PAGEFIND_VERSION: 1.1.0 TASK_VERSION: 3.36.0 - RESTIC_VERSION: 0.16.4 steps: - name: Install Hugo CLI run: |