Skip to content

Commit

Permalink
fix: ci: split upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Panakotta00 committed Oct 30, 2024
1 parent 5fcf339 commit 8566c78
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,18 @@ jobs:
- name: Package FicsItNetworks Mod
run: ${{ github.workspace }}\ue\Engine\Build\BatchFiles\RunUAT.bat -ScriptsForProject='${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.uproject' PackagePlugin -project='${{ github.workspace }}\SatisfactoryModLoader\FactoryGame.uproject' -DLCName='FicsItNetworks' -build -server -clientconfig=Shipping -serverconfig=Shipping -platform=Win64 -serverplatform=Win64+Linux -nocompileeditor -installed -merge -utf8output

- name: Upload FicsItNetworks-Merged
id: upload-win64
uses: actions/upload-artifact@v4
with:
name: FicsItNetworks-Merged
path: ${{github.workspace}}\SatisfactoryModLoader\Saved\ArchivedPlugins\FicsItNetworks\FicsItNetworks.zip
- name: Upload FicsItNetworks
id: upload-win64
uses: actions/upload-artifact@v4
with:
name: FicsItNetworks
path: ${{github.workspace}}\SatisfactoryModLoader\Saved\ArchivedPlugins\FicsItNetworks\*.zip
path: ${{github.workspace}}\SatisfactoryModLoader\Saved\ArchivedPlugins\FicsItNetworks\FicsItNetworks-*.zip

- name: Discord Webhook Action
uses: Panakotta00/[email protected]
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/update-release-draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ jobs:
name: "FicsItNetworks"
});
return response.data.artifacts[0].workflow_run.id;
- name: Find FicsIt-Networks-Merged Binary
uses: actions/github-script@v7
id: find-ficsit-networks-merged
with:
script: |
const response = await github.rest.actions.listArtifactsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
per_page: 1,
name: "FicsItNetworks-Merged"
});
return response.data.artifacts[0].workflow_run.id;
- name: Download FicsIt-Networks
uses: actions/download-artifact@v4
Expand All @@ -50,6 +62,13 @@ jobs:
run-id: ${{ steps.find-ficsit-networks.outputs.result }}
path: ${{ github.workspace }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Download FicsIt-Networks
uses: actions/download-artifact@v4
with:
name: FicsItNetworks-Merged
run-id: ${{ steps.find-ficsit-networks-merged.outputs.result }}
path: ${{ github.workspace }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload To Github Release
uses: xresloader/[email protected]
Expand Down

0 comments on commit 8566c78

Please sign in to comment.