diff --git a/.github/workflows/docs-mkdocs.yml b/.github/workflows/docs-mkdocs.yml new file mode 100644 index 0000000..814e2a4 --- /dev/null +++ b/.github/workflows/docs-mkdocs.yml @@ -0,0 +1,28 @@ +name: docs +# this workflow requires: +# - an mkdocs config file (`mkdocs.yml`) +# - website dependencies in `docs/requirements.txt` +on: + workflow_dispatch: + release: + types: + - published + push: + branches: + - main + paths: + - "docs/**" + - "**.md" + - .github/workflows/docs-mkdocs.yml + - mkdocs.yml + +jobs: + mkdocs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: CCBR/actions/mkdocs-mike@v0.1 + with: + github-token: ${{ github.token }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index eba7f0a..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: docs -on: - workflow_dispatch: - push: - branches: - - main - paths: - - 'docs/**' - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: 3.11 - - run: pip install --upgrade pip - - run: pip install -r docs/requirements.txt - - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml new file mode 100644 index 0000000..d643f5c --- /dev/null +++ b/.github/workflows/draft-release.yml @@ -0,0 +1,25 @@ +name: draft-release + +on: + workflow_dispatch: + inputs: + version-tag: + description: | + Semantic version tag for next release. + If not provided, it will be determined based on conventional commit history. + Example: v2.5.11 + required: false + type: string + default: "" + +jobs: + draft-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 # required to include tags + - uses: CCBR/actions/draft-release@v0.1 + with: + github-token: ${{ github.token }} + version-tag: ${{ github.event.inputs.version-tag }} diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml new file mode 100644 index 0000000..e0e21eb --- /dev/null +++ b/.github/workflows/post-release.yml @@ -0,0 +1,17 @@ +name: post-release + +on: + release: + types: + - published + +jobs: + cleanup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: CCBR/actions/post-release@v0.1 + with: + github-token: ${{ github.token }} diff --git a/mkdocs.yml b/mkdocs.yml index 3a4984c..932d06f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -4,6 +4,7 @@ site_author: Vishal Koparde, Ph.D. # Repository repo_name: CCBR/spacesavers2 repo_url: https://github.com/CCBR/spacesavers2 +edit_uri: https://github.com/CCBR/spacesavers2/edit/main/ # Copyright copyright: Copyright © 2023 CCBR @@ -76,8 +77,8 @@ markdown_extensions: - pymdownx.critic - pymdownx.details - pymdownx.emoji: - emoji_index: !!python/name:material.extensions.emoji.twemoji - emoji_generator: !!python/name:material.extensions.emoji.to_svg + emoji_index: !!python/name:materialx.emoji.twemoji + emoji_generator: !!python/name:materialx.emoji.to_svg - pymdownx.highlight - pymdownx.inlinehilite - pymdownx.keys