This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#819) Additional steps to create a release and edit release notes
- Loading branch information
Showing
1 changed file
with
24 additions
and
12 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 |
---|---|---|
|
@@ -10,29 +10,41 @@ on: | |
jobs: | ||
pin_dependency_versions: | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.9" | ||
architecture: x64 | ||
# - name: Setup Python | ||
# uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: "3.9" | ||
# architecture: x64 | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: Reset pinned hash versions | ||
run: .github/workflows/pin_versions.py --unpin | ||
- name: Install with latest dependencies | ||
run: pip install -e .[dev] | ||
# - name: Reset pinned hash versions | ||
# run: .github/workflows/pin_versions.py --unpin | ||
# - name: Install with latest dependencies | ||
# run: pip install -e .[dev] | ||
- id: pin_versions | ||
name: Pin Versions | ||
run: | | ||
MSG=$(.github/workflows/pin_versions.py) | ||
echo "COMMIT_MESSAGE=\"$MSG\"" >> "$GITHUB_OUTPUT" | ||
echo "COMMIT_MESSAGE=\"Test message\"" >> "$GITHUB_OUTPUT" | ||
# MSG=$(.github/workflows/pin_versions.py) | ||
# echo "COMMIT_MESSAGE=\"$MSG\"" >> "$GITHUB_OUTPUT" | ||
- name: Add setup.cfg | ||
run: git add setup.cfg | ||
run: | | ||
echo "TEST" >> setup.cfg | ||
git add setup.cfg | ||
- name: Commit changes | ||
run: | | ||
git config --global user.name "GitHub Workflow" | ||
git config --global user.email "[email protected]" | ||
git commit -m ${{steps.pin_versions.outputs.COMMIT_MESSAGE}} | ||
git tag ${{inputs.tagName}} | ||
git push origin ${{inputs.tagName}} | ||
- name: Create Release | ||
run: gh release create --generate-notes --draft ${{inputs.tagName}} | ||
- name: Edit Release Notes | ||
run: | | ||
echo "${{ steps.pin_versions.outputs.COMMIT_MESSAGE }}\n\n" > "$RUNNER_TEMP/relnotes.txt" | ||
gh release view ${{ inputs.tagName }} | sed '0,/^--$/d' >> "$RUNNER_TEMP/relnotes.txt" | ||
gh release edit ${{ inputs.tagName }} --notes-file "$RUNNER_TEMP/relnotes.txt" |