-
-
Notifications
You must be signed in to change notification settings - Fork 68
28 lines (28 loc) · 946 Bytes
/
build-release.yml
File metadata and controls
28 lines (28 loc) · 946 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Build Release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build Release Zip
uses: thedoctor0/zip-release@0.7.5
with:
type: 'zip'
filename: 'FS25_Courseplay.zip'
exclusions: '*.git* *.editorconfig *README* *LICENSE* test/* *.bat scripts/*.bat *.md Contributors.md'
- name: Get Version
id: get_version
run: echo "version=$(grep '<version>' modDesc.xml | sed -e 's/<\/*version>//g' -e 's/^[ \t]*//')" >> $GITHUB_ENV
- name: Upload Release
uses: ncipollo/release-action@v1.12.0
with:
artifacts: "FS25_Courseplay.zip"
tag: '${{ env.version }}'
name: 'Courseplay for FS25 v${{ env.version }}'
body: ${{ github.event.head_commit.message }}
generateReleaseNotes: 'true'
skipIfReleaseExists: 'true'