forked from KAT-Advanced-Medical/KAM
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 2.03 KB
/
release.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
name: Release
on:
release:
types: released
permissions:
contents: write
jobs:
release-addon:
runs-on: ubuntu-latest
steps:
- name: Set VERSION env
run: echo VERSION=${GITHUB_REF:11} >> $GITHUB_ENV
- name: Checkout the source code
uses: actions/checkout@v2
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Run HEMTT build
run: hemtt release --no-archive
- name: Move release to releases folder
run:
version="${{ github.event.release.tag_name }}"
mv .hemttout/release "@Kat-Advanced-Medical-${{ env.VERSION }}"
- name: Zip release
run: zip -r "@Kat-Advanced-Medical-${{ env.VERSION }}.zip" ./@Kat-Advanced-Medical-${{ env.VERSION }}
- name: Update Release with Files
uses: softprops/action-gh-release@v1
with:
files: ./@Kat-Advanced-Medical-${{ env.VERSION }}.zip
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update to Steam Workshop (stable)
uses: arma-actions/workshop-upload@v1
with:
itemId: '2020940806'
contentPath: './@Kat-Advanced-Medical-${{ env.VERSION }}'
changelog: |
https://github.com/KAT-Advanced-Medical/KAM/releases/tag/v${{ env.VERSION }}
${{ github.event.release.body }}
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
- name: Update to Steam Workshop (dev)
uses: arma-actions/workshop-upload@v1
with:
itemId: '2774641073'
contentPath: './@Kat-Advanced-Medical-${{ env.VERSION }}'
changelog: |
https://github.com/KAT-Advanced-Medical/KAM/releases/tag/v${{ env.VERSION }}
${{ github.event.release.body }}
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}