Skip to content

Commit

Permalink
CI: add test workflow for troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
claui committed Feb 11, 2024
1 parent 4c9d087 commit 9d7cd7c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/manual-test.yml
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

0 comments on commit 9d7cd7c

Please sign in to comment.