From 537e4fc07e1a569f91b5786f407b17d317c11fc9 Mon Sep 17 00:00:00 2001 From: Yuya KAMATAKI Date: Sun, 7 Sep 2025 17:14:14 +0900 Subject: [PATCH] fix workflow --- .gitea/workflows/deploy-pages.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/deploy-pages.yaml b/.gitea/workflows/deploy-pages.yaml index fbb23f6..2b82f8c 100644 --- a/.gitea/workflows/deploy-pages.yaml +++ b/.gitea/workflows/deploy-pages.yaml @@ -19,19 +19,14 @@ jobs: with: node-version: "20" - - name: Install cobalt (prebuilt) + - name: Install cobalt (prebuilt release) shell: bash run: | - if ! command -v curl >/dev/null 2>&1; then - (apt-get update && apt-get install -y curl) \ - || (apk add --no-cache curl) \ - || (dnf -y install curl) \ - || (pacman -Sy --noconfirm curl) - fi + set -euo pipefail curl -LSfs https://raw.githubusercontent.com/crate-ci/gh-install/master/v1/install.sh \ | sh -s -- --git cobalt-org/cobalt.rs --crate cobalt - cobalt --version - # cobaltのインストール手順(prebuilt)。:contentReference[oaicite:7]{index=7} + ~/.cargo/bin/cobalt --version # 動作確認 + # 公式ドキュメントの「Pre-built Binary」を使用(rustc不要)。:contentReference[oaicite:1]{index=1} - name: Build site with cobalt run: cobalt build