Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ”¨ Add a workflow to draft a release when new tag published

Alicia Sykes4474cccf309e
diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml
new file mode 100644
index 00000000..0355bd42
--- /dev/null
+++ b/.github/workflows/draft-release.yml
@@ -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 }}"'