Skip to content

Publish DAS

Publish DAS #8

Workflow file for this run

---
name: Publish DAS
on:
workflow_dispatch:
inputs:
version:
description: "Version"
required: true
jobs:
tag:
if: github.ref == 'refs/heads/master'
uses: singnet/das/.github/workflows/run-semver.yml@master
with:
version: ${{ github.event.inputs.version }}
version-strategy: bump-version-from-variable-value
job-image-namespace: trueagi
job-image-version-semver: semantic-versioning
main-branch: master
version-tag-regex-pattern: /^\d+\.\d+\.\d+$/
version-require-confirmation: "true"
title: New version of DAS
deliverable: Tagged branch (${{ github.ref_name }}) in the repository
secrets: inherit
publish-query-engine-doc:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout Query Engine Repo
uses: actions/checkout@v4
with:
repository: singnet/das-query-engine
token: ${{ secrets.GH_TOKEN }}
ref: master
- name: Checkout
uses: actions/checkout@v4
with:
path: das
- name: Merge 'docs' from DAS to Query Engine Repo
run: |
rsync -a das/docs/ ./docs/
rsync -a das/mkdocs.yml ./
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ^3.10
- name: Install Poetry
run: pip install poetry
- name: Update Documentation
run: |
poetry lock --no-update
poetry export --with doc -f requirements.txt | pip install -r /dev/stdin
mkdocs gh-deploy --force