dda-devops-build/.github/workflows/stable.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

2020-07-03 13:41:03 +00:00
name: stable
2020-07-03 13:37:06 +00:00
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
2020-07-03 13:46:31 +00:00
name: stable build
2020-07-03 13:37:06 +00:00
runs-on: ubuntu-latest
2020-07-03 13:46:31 +00:00
jobs:
build:
name: build&upload
runs-on: ubuntu-latest
2020-07-03 13:37:06 +00:00
2020-07-03 13:46:31 +00:00
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 stable release
env:
TWINE_USERNAME: dda
TWINE_PASSWORD: ${{ secrets.PYPI_DDA }}
run: |
pyb -P version=${{ github.ref }} publish upload
- name: Create GH Release
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