Skip to content

chore: Release v8.1.0 #81

chore: Release v8.1.0

chore: Release v8.1.0 #81

name: matrix-publisher
on:
push:
branches:
- master
paths:
- "**/__init__.py"
workflow_dispatch:
inputs:
dry_run:
type: choice
description: Dry run mode
required: true
options:
- "true"
- "false"
jobs:
pypi-publisher:
runs-on: thevickypedia-default
outputs:
version: ${{ steps.publish.outputs.version }}
dry_run: ${{ steps.dry-run.outputs.dry_run }}
strategy:
fail-fast: false
matrix:
project_name:
- jarvis-ironman
- jarvis-bot
- jarvis-nlp
- natural-language-ui
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set dry-run
id: dry-run
run: |
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
echo "::notice title=DryRun::Setting dry run to ${{ inputs.dry_run }} for '${{ github.event_name }}' event"
echo "dry_run=${{ inputs.dry_run }}" >> $GITHUB_ENV
echo "dry_run=${{ inputs.dry_run }}" >> $GITHUB_OUTPUT
else
echo "::notice title=DryRun::Setting dry run to false for '${{ github.event_name }}' event"
echo "dry_run=false" >> $GITHUB_ENV
echo "dry_run=false" >> $GITHUB_OUTPUT
fi
shell: bash
- name: "Update metadata: ${{ matrix.project_name }}"
run: |
python -m pip install toml
python update-toml.py
shell: bash
env:
FILE_PATH: "pyproject.toml"
PROJECT_NAME: "${{ matrix.project_name }}"
- uses: thevickypedia/pypi-publisher@v5
id: publish
with:
dry-run: ${{ env.dry_run }}
token: ${{ secrets.PYPI_TOKEN }}
checkout: 'false'
release:
needs: pypi-publisher
if: needs.pypi-publisher.outputs.dry_run == 'false'
uses: ./.github/workflows/release.yml
with:
project_version: ${{ needs.pypi-publisher.outputs.version }}
secrets: inherit
release-notes:
needs:
- release
- pypi-publisher
if: needs.pypi-publisher.outputs.dry_run == 'false' && needs.release.outputs.release_exists == 'false'
uses: ./.github/workflows/release_notes.yml
with:
project_version: ${{ needs.pypi-publisher.outputs.version }}
secrets: inherit