kanidm/.github/workflows/kanidm_book.yml
James Hodgkinson ec8e5dfc31
more-merge unixd commands (#1568)
* fixing unix packaging
* stripping out actions-rs/toolchain
* fixing an error in the qrcode def in cargo.toml
2023-04-25 22:36:17 +10:00

70 lines
1.6 KiB
YAML

---
name: GitHub Pages
"on":
push:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
generate_tags:
runs-on: ubuntu-latest
outputs:
tags: ${{ steps.tags.outputs.tags}}
latest: ${{ steps.previoustag.outputs.tag }}
steps:
- id: tags
name: pull tags
uses: oraad/get-tags-action@v1.0.0
with:
repo: ${{ github.repository }}
limit: 100
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
prefix: v1
fanout:
uses: './.github/workflows/kanidm_individual_book.yml'
needs: generate_tags
strategy:
fail-fast: false
matrix:
# tag: ${{ fromJson(needs.generate_tags.outputs.tags) }}
tag:
- ${{ needs.generate_tags.outputs.latest}}
with:
tag: ${{ matrix.tag }}
parent_id: ${{ github.ref }}
docs_master:
uses: './.github/workflows/kanidm_individual_book.yml'
with:
tag: "master"
parent_id: ${{ github.ref }}
deploy:
needs:
- fanout
- docs_master
- generate_tags
runs-on: ubuntu-latest
steps:
- name: Download previously built docs
uses: actions/download-artifact@v3
with:
name: docs
- name: Extract the files
run: |
find . -name '*.tar.gz' -exec tar zxf "{}" \;
ls -la docs/
cd docs && \
ln -s ${{ needs.generate_tags.outputs.latest}}/ stable && \
cd ..
ls -la docs/