Skip to content

Fix ActionSet

Fix ActionSet #26

Workflow file for this run

name: Build
on:
push
env:
PLUGIN_REPO: WorkingRobot/MyDalamudPlugins
PROJECT_NAME: Craftimizer
IS_OFFICIAL: ${{true}}
jobs:
build:
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0'
- name: Download Dalamud
run: |
wget https://goatcorp.github.io/dalamud-distrib/stg/latest.zip
unzip latest.zip -d dalamud/
echo "DALAMUD_HOME=$PWD/dalamud" >> $GITHUB_ENV
- name: Restore
run: |
dotnet restore -r win
- name: Build
run: |
dotnet build --configuration Release --no-restore
- name: Test
run: |
dotnet test --configuration Release --logger "trx;logfilename=results.trx" --logger "html;logfilename=results.html" --logger "console;verbosity=detailed" --no-build --results-directory="TestResults"
- name: Create Unofficial Builds
if: ${{env.IS_OFFICIAL}}
run: python ./.github/create_unofficial.py ${{env.PROJECT_NAME}}
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ${{env.PROJECT_NAME}}
path: ${{env.PROJECT_NAME}}/bin/x64/Release/${{env.PROJECT_NAME}}
if-no-files-found: error
- name: Upload Test Results
uses: actions/upload-artifact@v3
if: ${{ !cancelled() }}
with:
name: TestResults
path: TestResults
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
id: release
with:
files: ${{env.PROJECT_NAME}}/bin/x64/Release/${{env.PROJECT_NAME}}/*
- name: Trigger Plugin Repo Update
uses: peter-evans/repository-dispatch@v2
if: ${{ steps.release.conclusion == 'success' }}
with:
token: ${{secrets.PAT}}
repository: ${{env.PLUGIN_REPO}}
event-type: new-release