Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NostraThomas99 committed Apr 7, 2024
2 parents ceae56e + 54af144 commit 7f8f1b0
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 80 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish
on:
push:
tags:
- '*.*.*.*'
jobs:
Build:
permissions:
contents: write
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true

- name: Get Environment Variables
run: |
$tag = "${{ github.ref }}" -replace 'refs/tags/', ''
"tag=$tag" | Out-File -Append -FilePath $Env:GITHUB_ENV
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x

- name: Download Dalamud Latest
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: Restore Nuget Packages
run: dotnet restore ActionTimelineEx/ActionTimelineEx.csproj

- name: Build Plugin
run: dotnet build --no-restore -c Release ActionTimelineEx/ActionTimelineEx.csproj -p:AssemblyVersion=${{ env.tag }} -p:FileVersion=${{ env.tag }} -p:InformationalVersion=${{ env.tag }} --output .\build

- name: Zip Plugin
run: Compress-Archive -Path .\build\* -DestinationPath .\build\ActionTimelineReborn.zip

- name: Publish Plugin
uses: softprops/action-gh-release@v2
with:
files: ./build/ActionTimelineReborn.zip
token: ${{ secrets.GITHUB_TOKEN }}

79 changes: 0 additions & 79 deletions .github/workflows/release-please.yml

This file was deleted.

0 comments on commit 7f8f1b0

Please sign in to comment.