Skip to content

Commit

Permalink
Create automatic release workflow (#311)
Browse files Browse the repository at this point in the history
* Create release.yml

* Listing default directory content

* Changing zip command.

* Changing zip command.

* Changing zip command.

* Changing zip command.

* Changing zip command.

* Added workflow for semVer tag creation.

* Fixing createTag workflow.

* Fixing createTag workflow.

* Fixing createTag workflow.

* Added gitVersion/setup step.

* Unified release workflow.

* Unified release workflow.

* Fixing build.

* Fixing build.

* Split the workflow again.

* Added release workflow.

* Fixing build.

* Fixing build.

* Fixing build.

* Fixing build.

* Fixing build.

Co-authored-by: Florian Reiser <[email protected]>
  • Loading branch information
freiser77 and Florian Reiser authored Feb 5, 2022
1 parent 1716c23 commit 7de9b55
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Package guidanceSteering mod
run: zip -r -v FS22_guidanceSteering.zip . -x .idea data .\* zip.bat zip-builder.ps1
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]

- name: Create git tag
run: git tag $GITVERSION_SEMVER

- name: Push to repository
run: git push --tags

- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: FS22_guidanceSteering.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.gitversion.outputs.semVer }}

0 comments on commit 7de9b55

Please sign in to comment.