test for having dev & prod release

This commit is contained in:
jem 2020-07-02 12:22:13 +02:00
parent 5269ae35f2
commit e7853b4e90
2 changed files with 41 additions and 13 deletions

View file

@ -1,7 +1,7 @@
name: release dev name: release dev
on: on:
push: push:
ignore-tags: '[0-9]+.[0-9]+.[0-9]+' ignore-tags: '[0-9]+.[0-9]+.[0-9]'
jobs: jobs:
dev-release: dev-release:
@ -11,18 +11,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - 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 - name: Use python 3.x
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:

40
.github/workflows/release-prod.yml vendored Normal file
View file

@ -0,0 +1,40 @@
name: release prod
on:
push:
tags: '[0-9]+.[0-9]+.[0-9]'
jobs:
prod-release:
name: release prod
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
- name: Create 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