32 lines
887 B
Markdown
32 lines
887 B
Markdown
# action gh-release [](https://github.com/softprops/action-gh-release/actions)
|
|
|
|
|
|
📦 A [Github Action](https://help.github.com/en/categories/automating-your-workflow-with-github-actions) for creating [Github Releases](https://help.github.com/en/articles/creating-releases)
|
|
|
|
## Usage
|
|
|
|
```yaml
|
|
name: Main
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@master
|
|
- name: Build
|
|
run: echo ${{ github.sha }} > Release.txt
|
|
- name: Test
|
|
run: cat Release.txt
|
|
- name: Release
|
|
uses: docker://softprops/action-gh-release
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
files: Release.txt
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
```
|
|
|
|
Doug Tangren (softprops) 2019 |