Skip to content

Merge branch 'r-ex:main' into main #13

Merge branch 'r-ex:main' into main

Merge branch 'r-ex:main' into main #13

Workflow file for this run

name: Upload Release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
nightly:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 1
- name: Check for commits within the last 24 hours
uses: AlexHolderDeveloper/[email protected]
id: commitswithintime
with:
hours: 24
- name: Setup MSBuild
if: steps.commitswithintime.outputs.has-new-commits-within-time != 'false'
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: Get short commit SHA
if: steps.commitswithintime.outputs.has-new-commits-within-time != 'false'
run: echo SHA7=$(git rev-parse --short HEAD) >> $env:GITHUB_ENV
- name: Build Legion+
if: steps.commitswithintime.outputs.has-new-commits-within-time != 'false'
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m . /p:Configuration=Release
- name: ZIP Executable
if: steps.commitswithintime.outputs.has-new-commits-within-time != 'false'
uses: vimtor/action-zip@v1
with:
files: bin/x64/Release/LegionPlus.exe
dest: LegionPlus.zip
- name: Upload Release Build
if: steps.commitswithintime.outputs.has-new-commits-within-time != 'false'
uses: WebFreak001/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
upload_url: https://uploads.github.com/repos/biast12/LegionPlus/releases/131409444/assets{?name,label}
release_id: 131409444
asset_path: LegionPlus.zip
asset_name: LegionPlus.zip
asset_content_type: application/zip
max_releases: 1
- name: Update Release
if: steps.commitswithintime.outputs.has-new-commits-within-time != 'false'
uses: richardsimko/[email protected]
with:
tag_name: 'Release'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}