Skip to content

Commit

Permalink
Merge a4067c1 into cb7ada2
Browse files Browse the repository at this point in the history
  • Loading branch information
tumaysem authored Feb 15, 2023
2 parents cb7ada2 + a4067c1 commit 535c7ce
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 586 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/gh-pages.yml

This file was deleted.

42 changes: 40 additions & 2 deletions .github/workflows/semver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,50 @@ jobs:
permissions:
contents: write

outputs:
published: ${{ steps.semver.outputs.published }}
published_version: ${{ steps.semver.outputs.published_version }}
published_version_major: ${{ steps.semver.outputs.published_version_major }}
published_version_minor: ${{ steps.semver.outputs.published_version_minor }}
published_version_patch: ${{ steps.semver.outputs.published_version_patch }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Python Semantic Release
uses: relekang/python-semantic-release@master
id: semver
uses: tumaysem/python-semantic-release@master
with:
additional_options: --github
github_token: ${{ secrets.GITHUB_TOKEN }}

build_docs:
runs-on: ubuntu-latest
needs: release
if: needs.release.outputs.published == 'True'
env:
# https://github.com/actions/runner-images/issues/6185
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring

permissions:
contents: write

steps:
- uses: actions/checkout@v3

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: '1.2.2'

- name: Install dependencies
run: poetry install --only docs

- name: Build documents
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
poetry run mike deploy --rebase --update-aliases v${{ needs.release.outputs.published_version }} latest
poetry run mike set-default --push latest
Loading

0 comments on commit 535c7ce

Please sign in to comment.