mirror of
https://github.com/yeslayla/cognito-oauthtools.git
synced 2025-12-06 18:43:23 +01:00
Push additional files
Update Workflow Update Workflow Update Workflow Update Workflow Update Workflow
This commit is contained in:
34
.github/workflows/build.yml
vendored
Normal file
34
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Build & Publish
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- created
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.7
|
||||
- name: Update Version
|
||||
run: |
|
||||
pip install bumpversion
|
||||
export regex="([0-9]+.[0-9]+.[0-9]+)"
|
||||
echo ${{ github.ref }} > tag.txt
|
||||
VERSION=`grep -Po "${regex}" tag.txt`
|
||||
bumpversion minor --no-tag --new-version ${VERSION}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: build
|
||||
run: |
|
||||
python setup.py sdist bdist_wheel
|
||||
- name: PyPi Publish
|
||||
uses: pypa/gh-action-pypi-publish@v1.0.0a0
|
||||
with:
|
||||
user: josephbmanley
|
||||
password: ${{ secrets.PYPI_PASSWORD }}
|
||||
Reference in New Issue
Block a user