Skip to content

CASMINST-3431 noos (#431) #9

CASMINST-3431 noos (#431)

CASMINST-3431 noos (#431) #9

Workflow file for this run

name: Promote build to a release (stable)
on:
push:
tags:
- 'v?[0-9]+.[0-9]+.[0-9]+'
- 'v?[0-9]+.[0-9]+.[0-9]+.post[0-9]+'
workflow_dispatch:
env:
STREAM: stable
jobs:
Promote:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Jfrog setup
uses: jfrog/setup-jfrog-cli@v3
env:
JF_URL: https://artifactory.algol60.net
JF_USER: ${{ secrets.ARTIFACTORY_ALGOL60_USERNAME }}
JF_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ALGOL60_TOKEN }}
- uses: ./.github/actions/prepare-artifacts
with:
STREAM: ${{ env.STREAM }}
- uses: ncipollo/release-action@v1
with:
allowUpdates: true # if the job is re-ran to catch missed artifacts, allow updates
generateReleaseNotes: true
artifacts: ${{ env.DIR_UPLOAD }}/*
prerelease: false
makeLatest: true
generate_publish_docs:
name: generate docs with nox/sphinx and publish with mike
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Also fetch git-tags
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: nox
env:
GIT_REPO_NAME: "${GITHUB_REPOSITORY#*/}"
run: |
pip install .[ci,docs]
nox -e docs
- name: configure git user for bot commits
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: deploy docs with mike 🚀 and set as latest
run: |
mike deploy -F mkdocs.yml -b gh-pages --push --update-aliases ${{ github.ref_name}} latest
mike set-default -F mkdocs.yml -b gh-pages --push latest
- name: list doc versions 🚀
run: |
mike list -F mkdocs.yml -b gh-pages