Skip to content

Commit

Permalink
Trying another publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EphraimSiegfried committed Dec 19, 2022
1 parent 1291399 commit dadaf29
Showing 1 changed file with 10 additions and 31 deletions.
41 changes: 10 additions & 31 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,15 @@


name: Publish to Pypi

name: Python package
on:
push:
branches:
- main

workflow_dispatch:
inputs:
publish:
description: "Publish to pypi.org? (will not work from forks!)"
required: false
default: 'false'

tags:
- "v*.*.*"
jobs:
publish:
runs-on: ubuntu-20.04

build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
- uses: actions/checkout@v2
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
python-version: 3.9

- name: Publish to pypi
uses: coveooss/pypi-publish-with-poetry@v1
with:
project-name: fmover
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
pre-release: ${{ github.ref != 'refs/heads/main' }}
dry-run: ${{ github.ref != 'refs/heads/main' && github.event.inputs.publish != 'true' }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
ignore_dev_requirements: "yes"

0 comments on commit dadaf29

Please sign in to comment.