Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
WesR committed Oct 8, 2021
2 parents 49cb078 + fb4b09c commit eafcb58
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 18 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build+release+pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and push to github+pypi

on:
workflow_dispatch:
inputs:
version:
description: The package release version
required: true
default: 1.0.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2.2.2

- name: install buildtools
run: python3 -m pip install --upgrade pip build twine

- name: build
run: python3 -m build

- name: Upload a Build Artifact
uses: actions/upload-artifact@v2.2.4
with:
name: dist
path: dist/

- name: Tag commit
uses: tvdias/github-tagger@v0.0.1
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
tag: ${{ github.event.inputs.version }}

- uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
tag: ${{ github.event.inputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Push to pypi
run: twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} ./dist/*
18 changes: 0 additions & 18 deletions .github/workflows/pypi.yml

This file was deleted.

0 comments on commit eafcb58

Please sign in to comment.