chore(main): release 0.5.2 (#397) #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
on: | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
publish-pypi: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install secator | |
uses: ./.github/actions/install | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install secator build addon | |
run: secator install addons build | |
- name: Build PyPI package | |
run: secator u build pypi | |
- name: Publish PyPI package | |
run: secator u publish pypi | |
env: | |
HATCH_INDEX_AUTH: ${{ secrets.PYPI_TOKEN }} | |
publish-docker: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.11"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install secator | |
uses: ./.github/actions/install | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build Docker image | |
run: secator u build docker --latest | |
- name: Publish Docker image | |
run: secator u publish docker --latest | |