-
Notifications
You must be signed in to change notification settings - Fork 2.3k
31 lines (31 loc) · 1.07 KB
/
installer.yml
File metadata and controls
31 lines (31 loc) · 1.07 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
name: Create new installer
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag_name:
description: 'Tag to build'
required: true
default: 'v2.x.x'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
repository: 'PathOfBuildingCommunity/PathOfBuilding-Installer'
ref: 'master'
ssh-key: '${{ secrets.POB_INSTALLER_KEY }}'
- name: Install NSIS
run: |
choco install nsis --yes
echo "C:\Program Files (x86)\NSIS" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Create installer
run: 'python3 make_release.py --game-version 1'
- name: Upload artifact
run: >
gh release upload ${{ github.event.release.tag_name || github.event.inputs.tag_name }} (Get-ChildItem Dist -File).FullName --clobber -R ${{ github.repository }};