Skip to content

Commit

Permalink
Use GitHub CLI for creating releases
Browse files Browse the repository at this point in the history
  • Loading branch information
danjov committed Nov 25, 2024
1 parent 207bec9 commit 27800e6
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

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

jobs:
create-pre-release:
Expand Down Expand Up @@ -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 \

0 comments on commit 27800e6

Please sign in to comment.