mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
135ff87c7e
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>
35 lines
796 B
YAML
35 lines
796 B
YAML
name: Docs
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
concurrency: ci-${{ github.ref }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Inject slug/short variables
|
|
uses: rlespinasse/github-slug-action@v4
|
|
|
|
- name: Install Crystal
|
|
uses: crystal-lang/install-crystal@v1
|
|
|
|
- name: Download source
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: shards install
|
|
|
|
- name: Build docs
|
|
run: crystal docs --project-version="${{ env.GITHUB_REF_SLUG }}" --source-refname="${{ env.GITHUB_SHA_SHORT }}"
|
|
|
|
- name: Deploy docs 🚀
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
branch: gh-pages
|
|
folder: docs
|
|
clean: true
|