fix the build #3
This commit is contained in:
parent
6679a6343a
commit
4180fb866a
2 changed files with 6 additions and 35 deletions
29
.github/workflows/release-dev.yml
vendored
29
.github/workflows/release-dev.yml
vendored
|
@ -1,29 +0,0 @@
|
||||||
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: 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
|
|
|
@ -1,11 +1,10 @@
|
||||||
name: release prod
|
name: build
|
||||||
on:
|
on:
|
||||||
push:
|
push
|
||||||
tags: '[0-9]+.[0-9]+.[0-9]'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prod-release:
|
build:
|
||||||
name: release prod
|
name: build&upload
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -28,7 +27,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pyb publish upload
|
pyb publish upload
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create GH Release
|
||||||
|
if: github.tag='[0-9]+.[0-9]+.[0-9]'
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
Loading…
Reference in a new issue