Skip to content

Commit

Permalink
Update BuildWin64.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MunaAlaneme committed Nov 15, 2024
1 parent 28cb234 commit 44ae74f
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/BuildWin64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
contents: write
pull-requests: write
repository-projects: write
packages: write

jobs:
build-windows:
Expand Down Expand Up @@ -54,40 +55,32 @@ jobs:
#env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
#tag_name: ${{ github.event.head_commit.message }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
#release_name: ${{ github.event.head_commit.message }}
name: Prerelease ${{ github.ref_name }}
#overwrite: true
body: |
Prerelease v0.0.1
Prerelease ${{ github.ref_name }}
draft: true
prerelease: true
generateReleaseNotes: true
#- name: Find Release Asset
# id: find_asset
# run: echo "asset=$(find dist -type f -name '*.exe')" >> $GITHUB_ENV
- name: Install zip and Compress Directory
#Compress-Archive -Path dist\* -DestinationPath dist.zip
run: |
choco install zip -y
zip -r dist.zip dist
#shell: pwsh
Compress-Archive -Path dist\* -DestinationPath dist.zip
shell: pwsh
- name: Upload Release Asset
#id: upload-release-asset
#uses: actions/[email protected]
uses: softprops/[email protected]
env:
#GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
#GITHUB_TOKEN: ${{ secrets.variables.MY_PERSONAL_ACCESS_TOKEN }}
#uses: softprops/[email protected]
uses: actions/[email protected]
with:
files: dist.zip
#upload_url: ${{ steps.create_release.outputs.upload_url }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
##asset_path: dist/MicrosoftCopilotClickerPygame-Windows-amd64.exe
##asset_path: ${{ env.asset }}
#asset_path: dist.zip
#asset_name: MicrosoftCopilotClickerPygame-Windows-amd64.zip
#asset_content_type: application/zip
asset_path: dist.zip
asset_name: MicrosoftCopilotClickerPygame-Windows-amd64.zip
asset_content_type: application/zip
##token: ${{ secrets.variables.MY_PERSONAL_ACCESS_TOKEN }}

0 comments on commit 44ae74f

Please sign in to comment.