Bump fsfe/reuse-action from 3.0.0 to 4.0.0 (#473) #840
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 Shun Sakai | |
# | |
# SPDX-License-Identifier: Apache-2.0 OR MIT | |
name: Deployment | |
on: | |
pull_request: | |
push: | |
branches: | |
- "develop" | |
tags: | |
- "*-v[0-9]+.[0-9]+.[0-9]+" | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
- name: Install dependencies | |
run: | | |
npm ci | |
npx antora -v | |
- name: Setup just | |
uses: extractions/setup-just@v2 | |
- name: Build a book | |
run: just build-book | |
- name: Minify a book | |
uses: docker://tdewolff/minify:latest | |
with: | |
args: --exclude "build/site/_/**" -o build/ -r build/ | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: build/site |