mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Fix docs CI workflow
This commit is contained in:
parent
c5748aec71
commit
853f84d954
1 changed files with 5 additions and 19 deletions
24
.github/workflows/docs.yml
vendored
24
.github/workflows/docs.yml
vendored
|
@ -4,8 +4,12 @@ on:
|
|||
push:
|
||||
branches: [master]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-and-deploy:
|
||||
concurrency: ci-${{ github.ref }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Inject slug/short variables
|
||||
|
@ -16,8 +20,6 @@ jobs:
|
|||
|
||||
- name: Download source
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install dependencies
|
||||
run: shards install
|
||||
|
@ -27,22 +29,6 @@ jobs:
|
|||
sed -i -e 's:<.*>::g' README.md
|
||||
crystal docs --project-version="${{ env.GITHUB_REF_SLUG }}" --source-refname="${{ env.GITHUB_SHA_SHORT }}"
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: docs
|
||||
path: docs
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: docs
|
||||
path: docs
|
||||
|
||||
- name: Deploy docs 🚀
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue