Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub CLI for creating releases #357

Merged
merged 4 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use GitHub CLI for creating releases
danjov committed Nov 25, 2024
commit 27800e6549c34fbe93c17046761ecf859a397c12
16 changes: 10 additions & 6 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ on:

env:
REGISTRY: ghcr.io
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
create-pre-release:
@@ -58,9 +59,12 @@ jobs:
cache-to: type=inline

- name: Create GitHub pre-release
uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: v${{ env.VERSION }}
prerelease: true
title: ${{ env.VERSION }}
run: |
gh api \
--method POST \
--header "Accept: application/vnd.github+json" \
/repos/${GITHUB_REPOSITORY}/releases \
-f tag_name='v${{ env.VERSION }}' \
-f target_commitish='main' \
-f name='${{ env.VERSION }}' \
-F prerelease=true \
danjov marked this conversation as resolved.
Show resolved Hide resolved