Skip to content

Commit

Permalink
Replace legacy publisher with matrix-publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Oct 5, 2024
1 parent 62cb7b5 commit fbc1a94
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 49 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/matrix-publisher.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
name: matrix-publisher

on:
release:
types:
- published
push:
branches:
- master
paths:
- jarvis/**
- pyproject.toml
workflow_dispatch:
inputs:
dry_run:
description: "Dry run?"
type: choice
description: Dry run mode
required: true
options:
- "true"
- "false"

jobs:
publisher:
pypi-publisher:
runs-on: thevickypedia-lite
strategy:
fail-fast: false
matrix:
project_names:
- jarvis-ironman
- jarvis-bot
- jarvis-nlp
- natural-language-ui

steps:
- name: Checkout
Expand All @@ -44,7 +55,7 @@ jobs:
python update-toml.py pyproject.toml "${{ matrix.project_names }}"
shell: bash

- uses: thevickypedia/pypi-publisher@v3.2
- uses: thevickypedia/pypi-publisher@v3
with:
dry-run: ${{ env.dry_run }}
token: ${{ secrets.PYPI_TOKEN }}
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/python-publish.yml

This file was deleted.

0 comments on commit fbc1a94

Please sign in to comment.