Update action.yml #30
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: Create Release and Push to Marketplace | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install GitVersion | |
uses: gittools/actions/gitversion/setup@v0 | |
with: | |
versionSpec: '5.x' | |
- name: Determine Version | |
id: gitversion | |
uses: gittools/actions/gitversion/execute@v0 | |
- name: Tag ${{ env.GitVersion_SemVer }} | |
run: | | |
git config --local user.email "james@jcdc.dev" | |
git config --local user.name "James" | |
git tag -a "$GitVersion_SemVer" -m "Release $GitVersion_SemVer" | |
- name: Create Release ${{ env.GitVersion_SemVer }} | |
uses: ncipollo/release-action@v1 | |
with: | |
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }} | |
generateReleaseNotes: true | |
tag: ${{ env.GitVersion_SemVer }} | |
allowUpdates: true | |
makeLatest: true | |
- name: Push ${{ env.GitVersion_SemVer }} | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true | |
tags: true |