Skip to content

fix: frozen dependencies #3

fix: frozen dependencies

fix: frozen dependencies #3

Workflow file for this run

name: CD
on:
pull_request:
branches:
- master
types:
- closed
jobs:
publish:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: relekang/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.2.2
- name: Configure Poetry
run: |
poetry config virtualenvs.in-project true
- name: Set up cache
uses: actions/[email protected]
with:
path: .venv
key: venv-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
run: |
poetry install
- name: Get the release version
run: |
export RELEASE_TAG_VERSION="$( poetry run semantic-release print-version --current )"
echo "RELEASE_TAG_VERSION=${RELEASE_TAG_VERSION}" >> $GITHUB_ENV
- name: Publish to GitHub packages
uses: whoan/docker-build-with-cache-action@v5
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
image_name: ${{ github.repository }}/roughgan
image_tag: ${{ env.RELEASE_TAG_VERSION }},latest
context: ./docker/
- name: Configure git
run: |
git config --global user.name Docs deploy
git config --global user.email [email protected]
- name: Publish the documentation
run: |
poetry run mike deploy --push --update-aliases ${RELEASE_TAG_VERSION} latest
poetry run mike set-default --push latest