Merge pull request #111 from carlthome/upgrade-dependencies #86
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- "master" | |
name: Create Release | |
jobs: | |
build: | |
name: Create Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
with: | |
lfs: true | |
- name: Retrieve version | |
run: | | |
echo "::set-output name=TAG_NAME::$(grep -i -o -P '(?<=version=\")[^\"]+(?=\")' setup.py)" | |
id: version | |
- name: Changelog | |
uses: scottbrenner/generate-changelog-action@master | |
id: changelog | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ steps.version.outputs.TAG_NAME }} | |
release_name: Release ${{ steps.version.outputs.TAG_NAME }} | |
body: ${{steps.changelog.outputs.changelog}} | |
draft: false | |
prerelease: false |