Skip to content

Commit

Permalink
Merge pull request #799 from product-os/kyle/always-github-release
Browse files Browse the repository at this point in the history
Always publish GitHub releases even without artifacts
  • Loading branch information
flowzone-app[bot] authored Nov 14, 2023
2 parents f9865b3 + 4fb48ba commit 4d6e484
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/flowzone.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2893,21 +2893,8 @@ jobs:
with:
path: ${{ runner.temp }}

- name: Check if any release artifacts exist
id: gh_artifacts
env:
GH_ARTIFACTS: ${{ runner.temp }}/gh-release-${{ github.event.pull_request.head.sha || github.event.head_commit.id }}
run: |
set -ea
artifact_count=0
[ -d "$GH_ARTIFACTS" ] && \
artifact_count=$(ls "$GH_ARTIFACTS" | wc -l | sed 's/^ *//;s/ *$//')
echo "count=$artifact_count" >> $GITHUB_OUTPUT
# https://github.com/softprops/action-gh-release
- name: Publish artifacts
if: steps.gh_artifacts.outputs.count != '0'
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
with:
token: ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }}
Expand Down

0 comments on commit 4d6e484

Please sign in to comment.