Skip to content

Commit

Permalink
consolidate in one github workflows file
Browse files Browse the repository at this point in the history
  • Loading branch information
flaport committed Jul 9, 2023
1 parent 706c417 commit 5f84424
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 39 deletions.
30 changes: 28 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: main
on:
workflow_dispatch:
pull_request:
push:
tags:
- '[0-9].[0-9].[0-9]'
Expand Down Expand Up @@ -34,3 +32,31 @@ jobs:
with:
path: ./wheelhouse/*.whl

release:
name: Create Release
needs: [build_wheels]
runs-on: ubuntu-latest

steps:
- uses: actions/setup-python@v4
with:
python-version: "3.x"

- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Show dist contents
run: ls dist

- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/*

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

37 changes: 0 additions & 37 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit 5f84424

Please sign in to comment.