Skip to content

Commit

Permalink
Merge pull request #99 from felix-seifert/release-on-github
Browse files Browse the repository at this point in the history
ci: add workflow to release on GitHub
  • Loading branch information
csgoh authored Mar 18, 2024
2 parents a3a7920 + af89492 commit c8ce980
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release-on-github.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release on GitHub

on:
workflow_dispatch:
inputs:
tag:
description: Create GitHub release of following tag
required: true
type: string
workflow_call:
inputs:
tag:
required: true
type: string

jobs:
create-release:

runs-on: ubuntu-latest
steps:

- name: Create GitHub release
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/csgoh/roadmapper/releases \
-d '{"tag_name":"${{ inputs.tag }}","target_commitish":"main","draft":false,"prerelease":false,"generate_release_notes":true}'

0 comments on commit c8ce980

Please sign in to comment.