Skip to content

Commit

Permalink
🔨 Add a workflow to draft a release when new tag published
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed May 25, 2024
1 parent 17fa29c commit 4474ccc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 🏗️ Draft New Release

on:
push:
tags:
- '*.*.*'

jobs:
create-draft-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code 🛎️
uses: actions/checkout@v2
with:
fetch-depth: 0 # We need all history for generating release notes

- name: Create Draft Release 📝
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
generate_release_notes: true

- name: Output new release URL ↗️
run: 'echo "Draft release URL: ${{ steps.create_release.outputs.html_url }}"'

0 comments on commit 4474ccc

Please sign in to comment.