Skip to content

Commit e376213

Browse files
committed
only run distribute for releases, bump version
1 parent 547ce64 commit e376213

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/ci.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "Continuous Integration"
2-
on: [ push ]
2+
on: [ push, release ]
33

44
jobs:
55
test:
@@ -248,7 +248,7 @@ jobs:
248248
name: "Distribute Cargo, WASM, and Python Sdist Packages"
249249
needs: [ "build", "build-wheels" ]
250250
runs-on: ubuntu-latest
251-
if: "${{ github.ref == 'refs/heads/master' }}"
251+
if: github.event_name == 'release' && github.event.action == 'published'
252252
steps:
253253
# Check out the code
254254
- uses: "actions/checkout@v3"
@@ -382,13 +382,11 @@ jobs:
382382
distribute-py-wheels:
383383
name: "Distribute Python Wheels"
384384
needs: [ "distribute" ]
385-
if: "${{ github.ref == 'refs/heads/master' }}"
386-
# needs: [build_wheels, build_sdist]
387385
runs-on: ubuntu-latest
388386
# upload to PyPI on every tag starting with 'v'
389387
# if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
390388
# alternatively, to publish when a GitHub Release is created, use the following rule:
391-
# if: github.event_name == 'release' && github.event.action == 'published'
389+
if: github.event_name == 'release' && github.event.action == 'published'
392390
steps:
393391
- uses: actions/download-artifact@v3
394392
with:

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "MIT"
99
name = "jsonlogic-rs"
1010
readme = "README.md"
1111
repository = "https://github.com/bestowinc/json-logic-rs"
12-
version = "0.3.0"
12+
version = "0.3.1"
1313

1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

0 commit comments

Comments
 (0)