Skip to content

Commit

Permalink
Update package_and_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
God-2077 authored Jul 19, 2024
1 parent 73d5450 commit f083361
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/package_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,17 @@ jobs:
run: |
Invoke-WebRequest -Uri https://github.com/cli/cli/releases/download/v2.20.2/gh_2.20.2_windows_amd64.msi -OutFile gh-cli.msi; Start-Process msiexec.exe -Wait -ArgumentList '/i gh-cli.msi /quiet'; Remove-Item gh-cli.msi -Force
- name: Authenticate GitHub CLI
shell: pwsh
run: |
$env:GITHUB_TOKEN | Out-File -FilePath gh_token.txt -NoNewline;
gh auth login --with-token < gh_token.txt;
Remove-Item gh_token.txt
- name: Create Release and Upload Assets
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo $env:GITHUB_TOKEN | gh auth login --with-token;
gh release create ${{ github.event.inputs.tag_name }} --title "${{ github.event.inputs.release_name }}" --notes "Release ${{ github.event.inputs.release_name }}";
Get-ChildItem -Recurse -Filter *.exe | ForEach-Object { gh release upload ${{ github.event.inputs.tag_name }} $_.FullName --clobber --no-tty }
Get-ChildItem -Recurse -Filter *.exe | ForEach-Object { gh release upload ${{ github.event.inputs.tag_name }} $_.FullName --clobber }

0 comments on commit f083361

Please sign in to comment.