ajustes #4
Workflow file for this run
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: | |
branchs: master | |
jobs: | |
test-increment-semver-job: | |
runs-on: ubuntu-latest | |
name: A job to release the next version | |
steps: | |
# Note Checkout is required for ${GITHUB_WORKSPACE} to be not empty | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Increment Step Patch | |
id: increment-semver-patch | |
uses: Benbentwo/increment-semver@master | |
with: | |
version-level: '-p' | |
# Optional I'm using this to get a less static changelog for the body of the release | |
- name: Get Changelog | |
id: changelog | |
run: | | |
echo "::set-output name=CHANGELOG::$(cat CHANGELOG.md)" | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ steps.increment-semver-patch.outputs.version }} | |
release_name: Release v${{ steps.increment-semver-patch.outputs.version }} | |
body: | | |
#### Changes in this Release: | |
${{ steps.changelog.outputs.CHANGELOG }} | |
draft: false | |
prerelease: false |