Update to version 1.6.4 #140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
tags: | |
- '*' | |
pull_request: | |
branches: [main] | |
env: | |
PROJECT_NAME: BDTHPlugin | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Setup MSBuild | |
uses: microsoft/[email protected] | |
- name: Download Dalamud | |
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 | |
dotnet build --configuration Release --nologo --output bin/ | |
env: | |
DOTNET_CLI_TELEMETRY_OUTPUT: true | |
- name: Create artifact | |
run: | | |
Compress-Archive -Path "bin/*" -DestinationPath BDTHPlugin.zip | |
- name: Upload artifact | |
uses: actions/[email protected] | |
with: | |
name: PluginZip | |
path: BDTHPlugin.zip | |
if-no-files-found: error | |
release: | |
needs: build | |
runs-on: windows-latest | |
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Download artifact | |
uses: actions/download-artifact@v2 | |
id: download | |
with: | |
name: PluginZip | |
- name: Get tag name | |
id: tag | |
uses: WyriHaximus/github-action-get-previous-tag@v1 | |
- name: Create release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ${{ env.PROJECT_NAME }} ${{ steps.tag.outputs.tag }} | |
tag_name: ${{ steps.tag.outputs.tag }} | |
body: ${{ github.events.commits[0].message }} | |
files: ./BDTHPlugin.zip | |
- name: Trigger plugin repo update | |
uses: peter-evans/repository-dispatch@v1 | |
with: | |
token: ${{ secrets.PAT }} | |
repository: LeonBlade/DalamudPlugins | |
event-type: new-release |