td #4
This commit is contained in:
parent
ca10171de6
commit
9bc6e2fd12
3 changed files with 54 additions and 70 deletions
57
.github/workflows/release.yml
vendored
57
.github/workflows/release.yml
vendored
|
@ -1,57 +0,0 @@
|
|||
name: build
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- never
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: build&upload
|
||||
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: debug
|
||||
run: |
|
||||
echo ${{ github.ref }}
|
||||
echo ${{ github.ref == '[0-9]+.[0-9]+.[0-9]' }}
|
||||
echo ${{ github.ref != '[0-9]+.[0-9]+.[0-9]' }}
|
||||
|
||||
- name: build stable release
|
||||
if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]' }}
|
||||
env:
|
||||
TWINE_USERNAME: dda
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_DDA }}
|
||||
run: |
|
||||
pyb -P version=${{ github.tag }} publish upload
|
||||
|
||||
- name: build unstable release
|
||||
if: ${{ github.tag != '[0-9]+.[0-9]+.[0-9]' }}
|
||||
env:
|
||||
TWINE_USERNAME: dda
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_DDA }}
|
||||
run: |
|
||||
pyb publish upload
|
||||
|
||||
- name: Create GH Release
|
||||
if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]' }}
|
||||
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
|
43
.github/workflows/stable.yml
vendored
43
.github/workflows/stable.yml
vendored
|
@ -6,13 +6,42 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: test-my build
|
||||
name: stable build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
jobs:
|
||||
build:
|
||||
name: build&upload
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
- name: debug
|
||||
run: |
|
||||
echo ${{ github.ref }}
|
||||
echo ${{ github.ref == '[0-9]+.[0-9]+.[0-9]+' }}
|
||||
echo ${{ github.ref != '[0-9]+.[0-9]+.[0-9]+' }}
|
||||
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
|
||||
|
24
.github/workflows/unstable.yml
vendored
24
.github/workflows/unstable.yml
vendored
|
@ -9,13 +9,25 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
name: test-my build
|
||||
name: unstable
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
||||
- name: debug
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Use python 3.x
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
echo ${{ github.ref }}
|
||||
echo ${{ github.ref == '[0-9]+.[0-9]+.[0-9]+' }}
|
||||
echo ${{ github.ref != '[0-9]+.[0-9]+.[0-9]+' }}
|
||||
python -m pip install --upgrade pip
|
||||
pip install pybuilder ddadevops deprecation setuptools
|
||||
|
||||
- name: build unstable release
|
||||
env:
|
||||
TWINE_USERNAME: dda
|
||||
TWINE_PASSWORD: ${{ secrets.PYPI_DDA }}
|
||||
run: |
|
||||
pyb publish upload
|
||||
|
|
Loading…
Reference in a new issue