2020-07-02 11:04:33 +00:00
|
|
|
name: build
|
2020-07-02 09:33:29 +00:00
|
|
|
on:
|
2020-07-02 11:04:33 +00:00
|
|
|
push
|
2020-07-02 09:33:29 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-07-02 11:04:33 +00:00
|
|
|
build:
|
|
|
|
name: build&upload
|
2020-07-02 09:33:29 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Use python 3.x
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
|
|
|
|
- name: install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install pybuilder ddadevops deprecation setuptools
|
|
|
|
|
|
|
|
- name: build em
|
2020-07-02 09:37:44 +00:00
|
|
|
env:
|
2020-07-02 09:33:29 +00:00
|
|
|
TWINE_USERNAME: dda
|
|
|
|
TWINE_PASSWORD: ${{ secrets.PYPI_DDA }}
|
|
|
|
run: |
|
|
|
|
pyb publish upload
|
2020-07-02 10:22:13 +00:00
|
|
|
|
2020-07-02 11:04:33 +00:00
|
|
|
- name: Create GH Release
|
2020-07-02 11:14:33 +00:00
|
|
|
if: ${{ github.tag='[0-9]+.[0-9]+.[0-9]' }}
|
2020-07-02 10:22:13 +00:00
|
|
|
id: create_release
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
|
|
|
tag_name: ${{ github.ref }}
|
|
|
|
release_name: Release ${{ github.ref }}
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|