Skip to content

Merge pull request #73 from swimlane/revert-72-revert-71-update_ci_deps #26

Merge pull request #73 from swimlane/revert-72-revert-71-update_ci_deps

Merge pull request #73 from swimlane/revert-72-revert-71-update_ci_deps #26

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: python
package-name: atomic-operator
bump-patch-for-minor-pre-major: true
include-v-in-tag: false
# The logic below handles the PyPi distribution:
- uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
if: ${{ steps.release.outputs.release_created }}
- name: Set up poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.7.1
if: ${{ steps.release.outputs.release_created }}
- name: Publish
run: |
poetry config http-basic.pypi "${{ secrets.PYPI_USERNAME }}" "${{ secrets.PYPI_PASSWORD }}"
poetry publish --build
if: ${{ steps.release.outputs.release_created }}
- name: Set release tag
run: |
export RELEASE_TAG_VERSION=${{ github.event.release.tag_name }}
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION:1}" >> $GITHUB_ENV
if: ${{ steps.release.outputs.release_created }}
- name: Setup doc deploy
run: |
git config --global user.name Docs deploy
git config --global user.email [email protected]
if: ${{ steps.release.outputs.release_created }}
- name: Install dependencies
run: |
git fetch origin gh-pages --depth=1
git config user.name github-actions
git config user.email [email protected]
poetry install mkdocs-material mike
poetry run mike deploy --push --update-aliases ${RELEASE_TAG_VERSION} latest
if: ${{ steps.release.outputs.release_created }}