Skip to content

Commit 0121e48

Browse files
authored
fix action (#63)
* Update test.yml * Update publish.yml
1 parent d3f7e97 commit 0121e48

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
name: Publish
22

3-
on: [push]
3+
on:
4+
push:
5+
tags:
6+
- '**'
47

58
jobs:
69
build-n-publish:
710
name: Build and publish Python 🐍 distributions 📦 to PyPI
8-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
11+
if: "success() && startsWith(github.ref, 'refs/tags/')"
912
runs-on: ubuntu-18.04
1013
steps:
1114
- uses: actions/checkout@v1

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Test
22

3-
on: [push]
3+
on:
4+
pull_request: {}
45

56
jobs:
67
test:
78
name: Test on Python ${{ matrix.python-version }} and ${{ matrix.os }}
89
runs-on: ${{ matrix.os }}
910
strategy:
11+
fail-fast: false
1012
matrix:
1113
python-version: [3.6, 3.7, 3.8]
1214
os: [ubuntu-latest, windows-latest, macos-latest]

0 commit comments

Comments
 (0)