Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
dannymeijer committed May 29, 2024
1 parent 43b625b commit ff24913
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/build_koheesio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,22 +66,4 @@ jobs:
path: dist/*
if-no-files-found: error

publish-pypi:
name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs: python-artifacts
runs-on: ubuntu-latest

steps:
- name: Download Python artifacts
uses: actions/download-artifact@v4
with:
name: python-artifacts
path: dist

- name: Publish package to PyPI
uses: pypa/[email protected]
with:
print-hash: true
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: build koheesio

on:
workflow_run:
workflows: [ "build_koheesio" ]
types:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

defaults:
run:
shell: bash

env:
APP_NAME: koheesio
PYTHON_VERSION: "3.12"
PYOXIDIZER_VERSION: "0.24.0"
DIST_URL: "https://github.com/Nike-Inc/koheesio/releases"

jobs:
publish-pypi:
name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
needs: python-artifacts
runs-on: ubuntu-latest

steps:
- name: Download Python artifacts
uses: actions/download-artifact@v4
with:
name: python-artifacts
path: dist

- name: Publish package to PyPI
uses: pypa/[email protected]
with:
print-hash: true
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit ff24913

Please sign in to comment.