mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
This commit is contained in:
parent
d13b60a245
commit
f08f4e56d4
1 changed files with 41 additions and 2 deletions
|
@ -12,7 +12,46 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
build:
|
||||||
runs-on: docker
|
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:
|
steps:
|
||||||
- run: echo "All good"
|
- 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 \
|
||||||
|
&& sudo 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
|
||||||
|
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
|
||||||
|
# TODO: Move site
|
||||||
|
|
||||||
|
- name: Build Gemini capsule
|
||||||
|
working-directory: ./www.byjp.me
|
||||||
|
run: task gemini-reduce
|
||||||
|
# TODO: Move gemini
|
||||||
|
|
Loading…
Reference in a new issue