Skip to content

Instantly share code, notes, and snippets.

@ybiquitous
Last active April 14, 2020 14:30
Show Gist options
  • Save ybiquitous/35a874e6acc627a28a59ed2e1dfb3b3a to your computer and use it in GitHub Desktop.
Save ybiquitous/35a874e6acc627a28a59ed2e1dfb3b3a to your computer and use it in GitHub Desktop.
How to automate GitHub releases via GitHub Actions
name: Release
on:
push:
tags: ["**"]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: softprops/action-gh-release@v1
with:
body: |
See the [changelog](https://github.com/${{ github.repository }}/blob/${{ github.sha }}/CHANGELOG.md) for more details.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ybiquitous
Copy link
Author

Put the file to .github/workflows/.

@ybiquitous
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment