Skip to content

Commit

Permalink
Publish with dry-run on pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Dec 13, 2023
1 parent ce17c32 commit ca69e21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ env:
POETRY_VERSION: "1.6.1"

on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- main
Expand Down Expand Up @@ -74,7 +76,13 @@ jobs:
run: |
poetry run packse build $SCENARIOS
- name: Publish scenarios [dry-run]
if: github.ref != 'refs/heads/master'
run: |
poetry run packse publish --dry-run dist/*
- name: Publish scenarios
if: github.ref == 'refs/heads/master'
env:
TWINE_NON_INTERACTIVE: 1
TWINE_USERNAME: "__token__"
Expand Down

0 comments on commit ca69e21

Please sign in to comment.