Skip to content

Instantly share code, notes, and snippets.

@niclaslindstedt
Created January 28, 2021 10:20
Show Gist options
  • Save niclaslindstedt/dd4328d5d33fdd11f73657368b8ce0c4 to your computer and use it in GitHub Desktop.
Save niclaslindstedt/dd4328d5d33fdd11f73657368b8ce0c4 to your computer and use it in GitHub Desktop.
Automatic release+changelog
name: Release
on:
push:
branches: [ master ]
jobs:
create_release:
name: create release
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: generate changelog
id: changelog
uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
output-file: "false"
- name: create release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment