diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f074e14..c5b9d07 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,6 +63,8 @@ jobs: needs: - build - prepare + permissions: + contents: write env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: @@ -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/*'