Skip to content

build: 2.1.7.5

build: 2.1.7.5 #92

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(stg):')}}
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Download Dalamud
if: ${{ contains(toJSON(github.event.commits.*.message), 'build:') }}
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"
- name: Download Dalamud Staging
if: ${{ contains(toJSON(github.event.commits.*.message), 'build(stg):') }}
run: |
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile latest.zip
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev\"
- name: Build
run: |
dotnet restore -r win ${{ env.SOLUTION_NAME }}.sln
dotnet build --configuration Release
- name: Test
run: |
dotnet test --no-restore --verbosity normal
- uses: actions/upload-artifact@v2
with:
name: PluginRepoZip
path: ${{ env.RELEASE_DIR }}
if-no-files-found: error
deploy:
needs: build
if: ${{ contains(toJSON(github.event.commits.*.message), 'build:') || contains(toJSON(github.event.commits.*.message), 'build(stg):')}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: ${{ env.PERSONAL_PLUGIN_REPO }}
token: ${{ secrets.PAT }}
- uses: actions/download-artifact@v2
with:
name: PluginRepoZip
path: plugins/${{ env.INTERNAL_NAME }}
- uses: EndBug/add-and-commit@v7
with:
add: --all
author_name: GitHub Action
author_email: github-actions[bot]@users.noreply.github.com
message: Update ${{ env.INTERNAL_NAME }}