Skip to content

Release v4.0.0

Release v4.0.0 #215

Workflow file for this run

name: release
on:
release:
types: [published]
workflow_dispatch:
jobs:
release-pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.x"
cache: 'pip'
- name: Build and Publish
env:
HATCH_INDEX_USER: ${{ secrets.PYPI_USERNAME }}
HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m pip install --upgrade pip
pip install -U hatch
pip install -r requirements.txt;
hatch build
hatch publish
release-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup environment
run: |
echo "VERSION=$(cat VERSION)" >> $GITHUB_ENV
- name: Login to DockerHub
uses: docker/login-action@v4.0.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push docker image
uses: docker/build-push-action@v7.0.0
with:
context: .
file: ./Dockerfile
tags: |
althack/mkdocs-simple-plugin:latest
althack/mkdocs-simple-plugin:${{ env.VERSION }}
push: true