forked from kamat/blog
fix workflow 2
This commit is contained in:
@@ -19,14 +19,16 @@ jobs:
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- name: Install cobalt (prebuilt release)
|
||||
- name: Install cobalt (prebuilt via eget)
|
||||
shell: bash
|
||||
run: |
|
||||
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
|
||||
~/.cargo/bin/cobalt --version # 動作確認
|
||||
# 公式ドキュメントの「Pre-built Binary」を使用(rustc不要)。:contentReference[oaicite:1]{index=1}
|
||||
apt-get update
|
||||
apt-get install -y ca-certificates curl tar
|
||||
curl -fsSL https://zyedidia.github.io/eget.sh | sh
|
||||
./eget cobalt-org/cobalt.rs --to /usr/local/bin/cobalt
|
||||
cobalt --version
|
||||
# eget はGitHub Releasesから適切な資産を自動選択します。:contentReference[oaicite:1]{index=1}
|
||||
|
||||
- name: Build site with cobalt
|
||||
run: cobalt build
|
||||
|
||||
Reference in New Issue
Block a user