Skip to content

Commit

Permalink
Stop worrying about pull request builds, figure out later
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmkenney committed Oct 12, 2023
1 parent 8febdba commit d1d96f0
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
types:
- published

pull_request:
branches: [main]

jobs:
# Build the packacge and upload the resulting distribution
# as an artifact to later be used during deployment to
Expand Down Expand Up @@ -40,9 +37,8 @@ jobs:

- name: Upload distribution artifact
if: |
((github.event_name == 'push' && startsWith(github.ref, 'refs/tags/' )) ||
(github.event_name == 'release' && github.event.action == 'published')) &&
github.event_name != 'pull_request'
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/' )) ||
(github.event_name == 'release' && github.event.action == 'published')
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
Expand All @@ -55,8 +51,7 @@ jobs:
if: |
github.event_name == 'release' &&
github.event.action == 'published' &&
github.repository == ${{ vars.REPO_OWNER }}/${{ vars.REPO_NAME }} &&
github.event_name != 'pull_request'
github.repository == ${{ vars.REPO_OWNER }}/${{ vars.REPO_NAME }}
needs:
- build
runs-on: ubuntu-latest
Expand All @@ -67,7 +62,7 @@ jobs:
id-token: write

steps:
- name: Downlaod build artifacts
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: python-package-distributions
Expand All @@ -80,8 +75,7 @@ jobs:
if: |
github.repository == ${{ vars.REPO_OWNER }}/${{ vars.REPO_NAME }} &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/') &&
github.event_name != 'pull_request'
startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit d1d96f0

Please sign in to comment.