Skip to content

docs(core): Add translation guide and update readme with installation and contribution details #7

docs(core): Add translation guide and update readme with installation and contribution details

docs(core): Add translation guide and update readme with installation and contribution details #7

Workflow file for this run

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