Archived
1
0

feat: add release workflow (#5560)

* feat(ci): add draft release workflow

* refactor: delete old release-github workflows

* fixup! refactor: delete old release-github workflows

* fixup! refactor: delete old release-github workflows

* Update .github/workflows/release.yaml

* fixup!: remove release-notes.txt

* fixup!: change branch to current
This commit is contained in:
Joe Previte
2022-09-16 08:14:28 -07:00
committed by GitHub
parent 7ecfb95569
commit 987c68a32a
6 changed files with 45 additions and 151 deletions

39
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Draft release
on:
workflow_dispatch:
permissions:
contents: write # For creating releases.
discussions: write # For creating a discussion.
# Cancel in-progress runs for pull requests when developers push
# additional changes
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
draft:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download artifacts
uses: dawidd6/action-download-artifact@v2
id: download
with:
branch: ${{ github.ref }}
workflow: ci.yaml
workflow_conclusion: completed
check_artifacts: true
name: release-packages
path: ./release-packages
- uses: softprops/action-gh-release@v1
with:
draft: true
discussion_category_name: "📣 Announcements"
files: ./release-packages/*