Skip to content

Commit

Permalink
Add upload workflow + slighlty alter others
Browse files Browse the repository at this point in the history
  • Loading branch information
parafoxia committed Sep 27, 2021
1 parent 22e0963 commit dc9edb0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 10 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
Expand All @@ -25,7 +17,7 @@ jobs:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -U pip
pip install build
- name: Build package
run: python -m build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run checks
name: Run Checks

on:
workflow_dispatch:
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/upload-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Upload binaries

on:
release:
types: [published, prereleased]

jobs:
build:
name: Publish binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install -U pip
pip install build
- name: Build
run: python -m build
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit dc9edb0

Please sign in to comment.