-
-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This re-uses the scie-pants & a-scie infra and converts CHANGES.rst to CHANGES.md so that infra can be used as-is.
- Loading branch information
Showing
3 changed files
with
2,611 additions
and
3,735 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,19 +84,51 @@ jobs: | |
uses: pantsbuild/actions/run-tox@e63d2d0e3c339bdffbe5e51e7c39550e3bc527bb | ||
with: | ||
tox-env: package | ||
- name: Prepare Changelog | ||
id: prepare-changelog | ||
uses: a-scie/actions/[email protected] | ||
with: | ||
changelog-file: ${{ github.workspace }}/CHANGES.md | ||
version: ${{ needs.determine-tag.outputs.release-version }} | ||
- name: Create ${{ needs.determine-tag.outputs.release-tag }} Release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ needs.determine-tag.outputs.release-tag }} | ||
name: pex ${{ needs.determine-tag.outputs.release-version }} | ||
body: | | ||
--- | ||
## ${{ needs.determine-tag.outputs.release-version }} | ||
TODO: Add CHANGES.rst entries. | ||
body_path: ${{ steps.prepare-changelog.outputs.changelog-file }} | ||
draft: false | ||
prerelease: false | ||
files: dist/pex | ||
fail_on_unmatched_files: true | ||
discussion_category_name: Announcements | ||
announce-release: | ||
name: Announce Release | ||
needs: | ||
- determine-tag | ||
- pypi | ||
- github-release | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Post Release Announcement to Pants Slack `#announce` | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
channel-id: "C18RRR4JK" | ||
# N.B.: You can muck with the JSON blob and see the results rendered here: | ||
# https://app.slack.com/block-kit-builder | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "Pex ${{ needs.determine-tag.outputs.release-version }} is released:\n* https://pypi.org/project/pex/${{ needs.determine-tag.outputs.release-version }}/\n* https://github.com/pantsbuild/pex/releases/tag/${{ needs.determine-tag.outputs.release-tag }}" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |
Oops, something went wrong.