stop checking version when rate limited #36
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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
permissions: | |
id-token: write | |
contents: write | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@main | |
- uses: actions/checkout@master | |
with: | |
repository: microsoft/vcpkg | |
path: vcpkg | |
- name: Get short SHA | |
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV | |
- uses: microsoft/[email protected] | |
- run: .\vcpkg\bootstrap-vcpkg.bat | |
- run: .\vcpkg\vcpkg integrate install | |
- run: .\vcpkg\vcpkg install freetype:x86-windows-static | |
- run: .\vcpkg\vcpkg install cpr:x86-windows-static | |
- run: .\vcpkg\vcpkg install jsoncpp:x86-windows-static | |
- name: Build solution | |
run: msbuild KBotExt.sln /p:Platform="x86" /p:Configuration=Release -m | |
- name: Upload build outputs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: KBotExt-${{ env.SHORT_SHA }} | |
path: Release/KBotExt.exe | |
- name: Tag Repo | |
uses: richardsimko/update-tag@v1 | |
with: | |
tag_name: prerelease | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create Release | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: "D:/a/KBotExt/KBotExt/Release/KBotExt.exe" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: prerelease | |
name: KBotExt-${{ env.SHORT_SHA }} | |
allowUpdates: true | |
generateReleaseNotes: true | |
makeLatest: true | |
prerelease: true | |
updateOnlyUnreleased: true # Only update the latest release if it is not marked as released. Set it to true if needed. |