ci: update workflow

This commit is contained in:
Tsubasa6848
2024-02-28 17:02:43 +08:00
Unverified
parent d372b85f3d
commit 08b4d4c0c1
3 changed files with 37 additions and 13 deletions
+27 -10
View File
@@ -29,7 +29,13 @@ jobs:
with:
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
path: |
bin/
bin/DLL/
- uses: actions/upload-artifact@v3
with:
name: PDB
path: |
bin/PDB/
upload-to-release:
needs:
@@ -38,24 +44,35 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- name: Download Plugin
uses: actions/download-artifact@v3
with:
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
path: release/
path: release/Plugin/
- run: |
cp LICENSE README.md release/
- name: Download PDB
uses: actions/download-artifact@v3
with:
name: PDB
path: release/PDB/
- name: Copy additional files
run: |
cp LICENSE README.md release/Plugin/
- name: Archive release
run: |
cd release
cd release/Plugin
zip -r ../${{ github.event.repository.name }}-windows-x64.zip *
cd ..
- uses: softprops/action-gh-release@v1
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v1
with:
append_body: true
files: |
${{ github.event.repository.name }}-windows-x64.zip
release/${{ github.event.repository.name }}-windows-x64.zip
release/PDB/${{ github.event.repository.name }}.pdb