Skip to content

Commit

Permalink
Add json to release
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingRobot committed Jul 23, 2023
1 parent f63dfea commit 8493da8
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build
# Put your personal access token in a repository secret named PAT for cross-repository access

on:
push:
tags:
Expand All @@ -26,9 +26,10 @@ jobs:
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 -r win ${{ env.PROJECT_NAME }}.sln
dotnet restore -r win ${{env.PROJECT_NAME}}.sln
dotnet build --configuration Release
env:
DOTNET_CLI_TELEMETRY_OUTPUT: true
Expand All @@ -40,25 +41,14 @@ jobs:
path: ${{env.PROJECT_NAME}}/bin/x64/Release/${{env.PROJECT_NAME}}
if-no-files-found: error

release:
needs: build
runs-on: windows-latest

steps:
- name: Download artifact
uses: actions/download-artifact@v2
id: download
with:
name: ${{env.PROJECT_NAME}}

- name: Create release
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ./latest.zip
files: ${{env.PROJECT_NAME}}/bin/x64/Release/${{env.PROJECT_NAME}}/*

- name: Trigger plugin repo update
- name: Trigger Plugin Repo Update
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PAT }}
token: ${{secrets.PAT}}
repository: ${{env.PLUGIN_REPO}}
event-type: new-release

0 comments on commit 8493da8

Please sign in to comment.