-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28cb234
commit 44ae74f
Showing
1 changed file
with
10 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ permissions: | |
contents: write | ||
pull-requests: write | ||
repository-projects: write | ||
packages: write | ||
|
||
jobs: | ||
build-windows: | ||
|
@@ -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 }} |