This repository was archived by the owner on Oct 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
47 lines (42 loc) · 1.66 KB
/
release.yml
File metadata and controls
47 lines (42 loc) · 1.66 KB
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
name: Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Update manifest.json version_number
uses: jossef/action-set-json-field@v1
with:
file: manifest.json
field: version_number
value: ${{ env.RELEASE_VERSION }}
- name: Copy files
run: |
mkdir -p ./build/nexus/bin/x64/plugins/cyber_engine_tweaks/ ./build/cybermods/ ./build/release/
cp LICENSE ./mods/braindance_protocol/
rsync -a mods/ ./build/nexus/bin/x64/plugins/cyber_engine_tweaks/mods/
rsync -a mods/ ./build/cybermods/mods/
rsync -a README.md manifest.json icon.png ./build/cybermods/
- name: Zip NexusMods Release
uses: TheDoctor0/zip-release@0.4.1
with:
filename: ../release/braindance_protocol_${{ env.RELEASE_VERSION }}.zip
directory: ./build/nexus/
- name: Zip CyberMods Release
uses: TheDoctor0/zip-release@0.4.1
with:
filename: ../release/braindance_protocol_${{ env.RELEASE_VERSION }}_cybermods.zip
directory: ./build/cybermods/
- name: Upload Artifacts
uses: ncipollo/release-action@v1
with:
allowUpdates: true
omitNameDuringUpdate: true
omitBodyDuringUpdate: true
artifacts: "./build/release/braindance_protocol_${{ env.RELEASE_VERSION }}.zip,./build/release/braindance_protocol_${{ env.RELEASE_VERSION }}_cybermods.zip"
token: ${{ secrets.GITHUB_TOKEN }}