GitHub Action: GitHub Release Action
There are plenty of existing GitHub Actions that handles publish of releases on GitHub. This is yet another.
Use this Action if you have the following workflow:
- All commits to master should build and update a single draft release.
- When the draft is ready for release, it can be published as prerelease/release manually. It will no longer be updateable.
- On next commit, another draft release will be created.
Here is an example on how to use this Action:
- name: Release
uses: DevLabor/action-release@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: "action.js;README.md"
folder: "${{github.workspace}}/package/"
branch: master
draft: true
prerelease: true
body: 'This is a pre-release'
name: "Draft Release"
tag: v0.0.1