Skip to content

Commit

Permalink
surely this will work
Browse files Browse the repository at this point in the history
  • Loading branch information
xanunderscore committed Sep 28, 2024
1 parent 11d5459 commit c566fb0
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build

on:
push:
branches:
- wip

jobs:
Build:
runs-on: ubuntu-latest
env:
DALAMUD_HOME: /tmp/dalamud
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true

- name: Get Tag Name
run: echo "tag=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//')" >> $GITHUB_ENV

- name: Set up .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x

- name: Download Dalamud Latest
run: |
wget https://goatcorp.github.io/dalamud-distrib/latest.zip -O ${{ env.DALAMUD_HOME }}.zip
unzip ${{ env.DALAMUD_HOME }}.zip -d ${{ env.DALAMUD_HOME }}
- name: Restore Project
run: dotnet restore

- name: Build Project
run: dotnet build --configuration Release BossMod/BossMod.csproj

- name: Publish
uses: ncipollo/release-action@v1
with:
artifacts: "BossMod/bin/Release/BossMod"
prerelease: true
tag: "nightly-$(git rev-parse --short HEAD)"

0 comments on commit c566fb0

Please sign in to comment.