Merge pull request #41 from friendsofstrandseq/dev #47
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
name: "tagged-release" | |
on: | |
push: | |
branches: | |
- main | |
# on: | |
# pull_request: | |
# types: [closed] | |
# branches: | |
# - main | |
jobs: | |
tagged-release: | |
name: "Tagged Release" | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/[email protected] | |
- name: Run read-yaml action | |
id: yaml-data | |
uses: jbutcher5/read-yaml@main # You may wish to replace main with a version tag such as '1.6' etc. | |
with: | |
file: "./config/config.yaml" | |
key-path: '["version"]' # Access the runs key then the using key and retuns the value. | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
custom_tag: ${{ steps.yaml-data.outputs.data }} | |
default_prerelease_bump: false | |
tag_prefix: "" | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
prerelease: false | |
automatic_release_tag: ${{ steps.yaml-data.outputs.data }} |