-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add test workflow for troubleshooting
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Manually test draft release creation | ||
|
||
on: | ||
- workflow_dispatch | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-22.04 | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/release_feed_mediola | ||
permissions: | ||
id-token: write | ||
steps: | ||
# Checking out just to make `gh release create` work. | ||
# Using `gh release create --repo` on its own would yield | ||
# an `HTTP 403: Resource not accessible by integration` error. | ||
- name: Check out source tree | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create draft release | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
run: | | ||
set -ex | ||
VERSION="v0.123.4.5.6-test" | ||
gh release create "v${VERSION}" \ | ||
--draft --generate-notes \ | ||
--target 4c9d087ca4480bb5a862a49d88ce15e79bf20963 |