mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-26 03:13:29 +04:00
48b7520bca
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout 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@v1
|
|
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
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./book/book
|
|
destination_dir: ./${{ env.OUTDIR }}
|
|
|
|
- name: Deploy stable
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: startswith(github.ref, 'refs/tags/')
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./book/book
|