Skip to content

Commit

Permalink
ci: update windows-portable.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed May 23, 2024
1 parent 0493606 commit ec2b1bc
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/windows-portable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,23 @@ jobs:
- name: Install Endstone
run: ${{ env.WP_DIR_NAME }}\python.exe -m pip install .

- name: Clean Up
run: |
${{ env.WP_DIR_NAME }}\python.exe -m pip install pyclean
${{ env.WP_DIR_NAME }}\python.exe -m pyclean ${{ env.WP_DIR_NAME }}
- name: Create Bundle
run: |
New-Item dist/endstone-win_amd64-portable -ItemType Directory
Copy-Item -Path ${{ env.WP_DIR_NAME }}\* -Destination dist/endstone-win_amd64-portable -Recurse
New-Item dist/endstone-win_amd64-portable/bin/python -ItemType Directory
Copy-Item -Path ${{ env.WP_DIR_NAME }}\* -Destination dist/endstone-win_amd64-portable/bin/python -Recurse
Copy-Item -Path scripts\start.cmd -Destination dist/endstone-win_amd64-portable
Copy-Item -Path scripts\start.ps1 -Destination dist/endstone-win_amd64-portable
- name: Create Zip
run: 7z a endstone-win_amd64-portable.zip dist/endstone-win_amd64-portable

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: dist/endstone-win_amd64-portable
path: endstone-win_amd64-portable.zip
name: endstone-win_amd64-portable.zip

0 comments on commit ec2b1bc

Please sign in to comment.