Skip to content

Commit

Permalink
Merge pull request #62 from kyma-project/feat/draft-to-release
Browse files Browse the repository at this point in the history
new publish release workflow
  • Loading branch information
szeort authored Sep 3, 2024
2 parents 5c3fa5d + d92bb3b commit ba996ae
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish Release Workflow

on:
workflow_dispatch:

jobs:
build:
runs-on: [ self-hosted ]

permissions:
contents: write
packages: write
attestations: write
id-token: write

steps:
- name: set version
run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
id: version

- name: Publish Release
env:
VERSION: ${{ steps.version.outputs.version }}
GITHUB_TOKEN: ${{ github.token }}
shell: bash
run: |
gh release edit "${VERSION}" --draft=false --latest

0 comments on commit ba996ae

Please sign in to comment.