-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (54 loc) · 1.65 KB
/
nsis.yaml
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
name: Build using NSIS
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install NSIS
uses: repolevedavaj/install-nsis@v1.0.2
with:
nsis-version: '3.10'
- name: Install NSIS Inetc plugin
run: |
Invoke-WebRequest https://nsis.sourceforge.io/mediawiki/images/c/c9/Inetc.zip -OutFile C:\WINDOWS\Temp\Inetc_plugin.zip
Expand-Archive "C:\WINDOWS\Temp\Inetc_plugin.zip" -DestinationPath "C:\Program Files (x86)\NSIS" -Force
shell: pwsh
- name: Build Installer
run: |
makensis installer.nsi
shell: cmd
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: ETS2LA-Installer
path: ETS2LA-Installer.exe
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: release_commit_${{ github.sha }}
release_name: Automated Release ${{ github.sha }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./ETS2LA-Installer.exe
asset_name: ETS2LA-Installer.exe
asset_content_type: application/octet-stream