-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (61 loc) · 2.06 KB
/
nwserver.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
on:
pull_request:
jobs:
versioning:
runs-on: ubuntu-latest
outputs:
stable: ${{ steps.version.outputs.stable }}
development: ${{ steps.version.outputs.development }}
preview: ${{ steps.version.outputs.preview }}
json: ${{ steps.version.outputs.json }}
steps:
- uses: actions/checkout@v4
- name: version
id: version
uses: ./.github/actions/version/
with:
steam_username: ${{ secrets.STEAM_USER }}
steam_password: ${{ secrets.STEAM_PASS }}
build:
runs-on: ubuntu-latest
needs: versioning
strategy:
matrix:
include:
- name: stable
env:
SEMVER: ${{ needs.versioning.outputs.stable }}
- name: development
env:
SEMVER: ${{ needs.versioning.outputs.development }}
- name: preview
env:
SEMVER: ${{ needs.versioning.outputs.preview }}
steps:
- uses: actions/checkout@v4
- name: should_semver
run: |
SHOULD_SEMVER=false
if [ ${{ matrix.name }} == 'stable' ]; then
SHOULD_SEMVER=true
elif [ ${{ matrix.name }} == 'development' ]; then
if [ ${{ needs.versioning.outputs.stable }} == ${{ needs.versioning.outputs.development }} ]; then
SHOULD_SEMVER=false
fi
elif [ ${{ matrix.name }} == 'preview' ]; then
if [ ${{ needs.versioning.outputs.preview }} == ${{ needs.versioning.outputs.stable }} ]; then
SHOULD_SEMVER=false
fi
if [ ${{ needs.versioning.outputs.preview }} == ${{ needs.versioning.outputs.development }} ]; then
SHOULD_SEMVER=false
fi
fi
echo "SHOULD_SEMVER=$SHOULD_SEMVER" >> $GITHUB_ENV
- name: NWNEE
id: nwn
uses: ./.github/actions/nwserver/
with:
steam_username: ${{ secrets.STEAM_USER }}
steam_password: ${{ secrets.STEAM_PASS }}
channel: ${{ matrix.name }}
tag_semver: ${{ env.SHOULD_SEMVER }}