Skip to content

v0.5.1

v0.5.1 #20

Workflow file for this run

name: Build
permissions:
contents: write
on:
workflow_dispatch:
push:
branches: [main]
tags:
- '*'
pull_request:
branches: [main]
env:
PROJECT_NAME: DragoonMayCry
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 ${{env.PROJECT_NAME}}.zip
- name: Upload artifact
uses: actions/[email protected]
with:
name: PluginZip
path: DragoonMayCry.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: ./${{env.PROJECT_NAME}}.zip
- name: Trigger plugin repo update
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PAT }}
repository: Felscream/DalamudPlugins
event-type: new-release