Use custom control to simplify layout. #67
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
name: Build and Release | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: write # This grants write permissions to the contents scope | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RELEASE_TAG: "latest_release" | |
jobs: | |
build_and_release: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build | |
run: dotnet build --configuration Release HellDivers2OneKeyStratagem.sln | |
- name: Pack files | |
run: | | |
cd bin | |
7Zip\7za.exe a -r ..\HellDivers2OneKeyStratagem.7z * | |
cd .. | |
- name: Delete release and tag | |
run: gh release delete ${{ env.RELEASE_TAG }} --cleanup-tag -y | |
continue-on-error: true | |
- name: Create a new tag and release | |
run: gh release create ${{ env.RELEASE_TAG }} --generate-notes | |
- name: Upload pack | |
run: gh release upload ${{ env.RELEASE_TAG }} HellDivers2OneKeyStratagem.7z --clobber |