Skip to content

Commit

Permalink
Fix action-gh-release
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlia committed Feb 13, 2023
1 parent a25bc9f commit 09c6d8a
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,17 +349,26 @@ jobs:
path: |
/tmp/sdist/*
/tmp/dists/*
# Apparently softprops/action-gh-release's globbing is broken:
- id: dist-files
shell: python
run: |
from __future__ import print_function
import glob, os
sdists = glob.glob('/tmp/sdist/*')
dists = glob.glob('/tmp/dists/*')
with open(os.environ['GITHUB_OUTPUT'], 'a') as o:
print('dist-files<<EOF', file=o)
for line in sdists + dists:
print(line, file=o)
print('EOF', file=o)
- if: github.ref_type == 'tag'
# Pinning the version to work around globbing bug
# <https://github.com/softprops/action-gh-release/issues/280>:
uses: softprops/action-gh-release@v0.1.13
uses: softprops/action-gh-release@v0.1.15
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ github.token }}
body_path: ${{ steps.extract-changelog.output.output-file }}
name: Seonbi ${{ github.ref_name }}
files:
/tmp/sdist/*
/tmp/dists/*
files: ${{ steps.dist-files.output.dist-files }}
- env:
HACKAGE_API_KEY: ${{ secrets.HACKAGE_API_KEY }}
run: |
Expand Down

0 comments on commit 09c6d8a

Please sign in to comment.