Skip to content

Commit

Permalink
CI: Adjust pages-alt deployment condition.
Browse files Browse the repository at this point in the history
Previously it would never fire since the workflow `on` condition
doesn't include pushes. Now, the deployment will happen on PRs
and manual requests.
  • Loading branch information
kpreid committed Aug 23, 2024
1 parent 605d361 commit 9d01cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ jobs:
#
# Caution: GitHub's parsing is weird around multiline expressions so just don't.
# https://github.community/t/how-to-write-multi-line-condition-in-if/128477
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/pages-alt') }}
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.ref == 'refs/heads/pages-alt' }}

steps:
# This action uses the artifact previously uploaded by actions/upload-pages-artifact
Expand Down

0 comments on commit 9d01cdb

Please sign in to comment.