Skip to content

Commit

Permalink
Run alr publish only on release and push events
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien-Chouteau committed Feb 1, 2024
1 parent 34f8c83 commit b65acd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:

# Produce an Alire release manifest
- name: Make Release Manifest
if: (github.event_name == 'release' || github.event_name == 'push')
run: |
# Set user GitHub login required for `alr publish`
alr config --set --global user.github_login ${{github.repository_owner}}
Expand All @@ -41,6 +42,7 @@ jobs:
# Save the path to the release manifest for the next step.
# This is a little trick to get around the fact that the actions/upload-release-asset doesn't allow globing pattern.
- name: Get Release Manifest PATH
if: (github.event_name == 'release' || github.event_name == 'push')
shell: bash
run: |
export MANIFEST_PATHNAME=$(ls alire/releases/*.toml | head -n 1)
Expand Down

0 comments on commit b65acd2

Please sign in to comment.