mirror of
https://github.com/dcarrillo/digaws.git
synced 2024-12-22 10:37:59 +00:00
Improve CI flow
This commit is contained in:
parent
fe12693de1
commit
4edcc42440
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@ -9,6 +9,7 @@ on:
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: github.event_name == 'pull_request'
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
@ -36,7 +37,7 @@ jobs:
|
||||
|
||||
build_publish:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
@ -48,7 +49,7 @@ jobs:
|
||||
- name: Install tools
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install twine
|
||||
pip install twine wheel
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user