Skip to content

Commit

Permalink
ci: Change actions for create and upload release
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed May 4, 2023
1 parent 799ca22 commit 5da543d
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ jobs:
needs:
- build
- prepare
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand All @@ -72,25 +74,11 @@ jobs:
path: dist/
- name: Create release on GitHub
id: create-release
uses: actions/create-release@latest
uses: ncipollo/release-action@v1
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
body: |
To know update details, please see [Changelog](https://sphinx-revealjs.readthedocs.io/en/stable/changes/) of documentation.
To know update details, please see [Changelog](/atsphinx/footnotes/blob/main/CHANGES.rst)
draft: false
prerelease: ${{ needs.prepare.outputs.is-prerelease }}
- name: Upload sdist to GitHub
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: dist/${{ needs.build.outputs.package-targz }}
asset_name: ${{ needs.build.outputs.package-targz }}
asset_content_type: application/gzip
- name: Upload wheel to GitHub
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: dist/${{ needs.build.outputs.package-wheel }}
asset_name: ${{ needs.build.outputs.package-wheel }}
asset_content_type: application/zip
artifacts: 'dist/*'

0 comments on commit 5da543d

Please sign in to comment.