mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-25 23:48:21 -05:00
Merge pull request #12 from scottc943/FEATURE/400_GitHubActions-automate-release-versions
ci: #minor change
This commit is contained in:
commit
06947d5d3a
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -12,13 +12,15 @@ concurrency: production
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Create Release
|
||||
name: bump tag version and release
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.sha }} ## this seems to be required due to https://github.com/anothrNick/github-tag-action/issues/266
|
||||
fetch-depth: 0
|
||||
- name: 'Automated Version Bump'
|
||||
id: version-bump
|
||||
uses: anothrNick/github-tag-action@1.36.0
|
||||
@ -35,7 +37,6 @@ jobs:
|
||||
REPO: ${{ github.repository }}
|
||||
- name: Create Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
generate_release_notes: true
|
||||
@ -43,5 +44,5 @@ jobs:
|
||||
tag_name: ${{ steps.version-bump.outputs.new_tag }}
|
||||
prerelease: false
|
||||
env:
|
||||
GITHUB_REPOSITORY: my_gh_org/my_gh_repo
|
||||
GITHUB_REPOSITORY: ${{ github.repository }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user