Skip to content

Commit

Permalink
Replace action-gh-release with release-action
Browse files Browse the repository at this point in the history
[changelog skip]
  • Loading branch information
dahlia committed Feb 13, 2023
1 parent 09c6d8a commit 17d667f
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,26 +349,13 @@ 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'
uses: softprops/action-gh-release@v0.1.15
uses: ncipollo/release-action@v1
with:
token: ${{ github.token }}
body_path: ${{ steps.extract-changelog.output.output-file }}
artifactErrorsFailBuild: true
artifacts: /tmp/sdist/*,/tmp/dists/*
bodyFile: ${{ steps.extract-changelog.outputs.output-file }}
name: Seonbi ${{ github.ref_name }}
files: ${{ steps.dist-files.output.dist-files }}
- env:
HACKAGE_API_KEY: ${{ secrets.HACKAGE_API_KEY }}
run: |
Expand Down

0 comments on commit 17d667f

Please sign in to comment.