add automated build

This commit is contained in:
jem 2020-07-02 11:33:29 +02:00
parent ce067b637a
commit da31e2bb72

41
.github/workflow/release.yml vendored Normal file
View file

@ -0,0 +1,41 @@
name: release dev
on:
push:
ignore-tags: '[0-9]+.[0-9]+.[0-9]+'
jobs:
dev-release:
name: release dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: /usr/lib/python3/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- 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
env:
TWINE_USERNAME: dda
TWINE_PASSWORD: ${{ secrets.PYPI_DDA }}
run: |
pyb publish upload