mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 02:46:17 +04:00
55346f32b5
Bumps [peaceiris/actions-mdbook](https://github.com/peaceiris/actions-mdbook) from 1 to 2. - [Release notes](https://github.com/peaceiris/actions-mdbook/releases) - [Changelog](https://github.com/peaceiris/actions-mdbook/blob/main/CHANGELOG.md) - [Commits](https://github.com/peaceiris/actions-mdbook/compare/v1...v2) --- updated-dependencies: - dependency-name: peaceiris/actions-mdbook dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
42 lines
947 B
YAML
42 lines
947 B
YAML
name: Github Pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v2
|
|
with:
|
|
mdbook-version: 'latest'
|
|
# mdbook-version: '0.4.8'
|
|
|
|
- run: mdbook build book
|
|
|
|
- name: Set output directory
|
|
run: |
|
|
OUTDIR=$(basename ${{ github.ref }})
|
|
echo "OUTDIR=$OUTDIR" >> $GITHUB_ENV
|
|
|
|
- name: Deploy stable
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
if: startswith(github.ref, 'refs/tags/')
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./book/book
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./book/book
|
|
destination_dir: ./${{ env.OUTDIR }}
|