Skip to content

build(api11): 564564' #110

build(api11): 564564'

build(api11): 564564' #110

Workflow file for this run

name: Build
# Put your personal access token in a repository secret named PAT for cross-repository access
on:
workflow_dispatch:
push:
branches:
- master
env:
PUBLIC_NAME: FFLogsViewer
SOLUTION_NAME: FFLogsViewer
INTERNAL_NAME: FFLogsViewer
RELEASE_DIR: FFLogsViewer\bin\Release\FFLogsViewer
PERSONAL_PLUGIN_REPO: Aireil/MyDalamudPlugins
DOTNET_CLI_TELEMETRY_OPTOUT: true
jobs:
build:
if: ${{ contains(toJSON(github.event.commits.*.message), 'build:') || contains(toJSON(github.event.commits.*.message), 'build(')}}
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Extract Branch
id: extract_branch
run: |
$branch_name = 'master'
$commit_messages = @'
${{ toJSON(github.event.commits) }}
'@
Write-Host "Commit messages: $commit_messages"
$commit_messages = $commit_messages | ConvertFrom-Json
foreach ($commit in $commit_messages) {
if ($commit.message -match 'build\(([^)]+)\):') {
$branch_name = $matches[1]
break
}
}
Write-Host "Branch name: $branch_name"
echo "branch_name=$branch_name" >> $GITHUB_ENV
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Download Dalamud
run: |
$branch_name = $env:branch_name
Write-Host "Branch name: $branch_name"
if ($branch_name -eq 'master') {
$url = 'https://goatcorp.github.io/dalamud-distrib/latest.zip'
} else {
$url = "https://goatcorp.github.io/dalamud-distrib/$branch_name/latest.zip"
}
Write-Host "Downloading from: $url"
Invoke-WebRequest -Uri $url -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"