Skip to content

Commit

Permalink
Added pull request event to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clyde-johnston committed Jun 12, 2023
1 parent ffbca00 commit 086e9d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: 'PyCyphal application builder'

# Builds OpenCyphal PyCyphal release

on:
push:
branches:
- master
pull_request:
branches:
- master

# Ensures that only one workflow is running at a time
concurrency:
Expand All @@ -18,7 +20,6 @@ jobs:
#
pycyphal-test:
name: Test PyCyphal
if: startsWith(github.ref, 'refs/heads/')
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -81,7 +82,7 @@ jobs:
#
pycyphal-release:
name: Release PyCyphal
if: startsWith(github.ref, 'refs/heads/')
if: github.event_name == 'push'
needs: pycyphal-test
runs-on: ubuntu-latest
steps:
Expand All @@ -108,7 +109,7 @@ jobs:
python -m twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN_GLOBAL }}
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN_PYCYPHAL }}

# Tag release
- name: Push version tag
Expand All @@ -117,4 +118,3 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ env.pycyphal_version }}
tag_prefix: ''
dry_run: false

0 comments on commit 086e9d8

Please sign in to comment.