Skip to content

Commit

Permalink
Update windows_build_runner.yml
Browse files Browse the repository at this point in the history
- Changed edge builds to be only 1 at a time
- Changed windows edge builds to use same tag
- Added a version.info to compressed artifacts to keep record of semantic version by sha.
- Added sha to name of compressed artifact as another record of semantic version
  • Loading branch information
Codinablack authored Dec 29, 2024
1 parent e56f73a commit 2dc6d2a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/windows_build_runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,21 @@ jobs:

- name: Prepare Compressed Assets
run: |
echo "Commit SHA: ${{ github.sha }}" > version.info
cp version.info D:/a/BlackTek-Server/BlackTek-Server/
7z a BlackTek-Server.zip D:/a/BlackTek-Server/BlackTek-Server/
- name: Upload Assets for Edge Build
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/') || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
if: (github.event_name == 'push') && (matrix.os == 'windows-release') && !startsWith(github.ref, 'refs/tags/') || (github.event_name == 'pull_request' && (matrix.os == 'windows-release') && github.event.pull_request.merged == true)
uses: softprops/action-gh-release@v2
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prerelease: true
tag_name: ${{ matrix.buildtype }}-Edge-Build-${{ github.sha }}
tag_name: Windows-Edge-Build
name: BlackTek Server Edge Build
body: |
This is an automated Windows Edge build for commit ${{ github.sha }}
OS-BuildType: ${{ matrix.buildtype }}
OS-BuildType: Windows
Build date: ${{ github.event.head_commit.timestamp }}
files: BlackTek-Server.zip
files: BlackTek-Server-${{ github.sha }}.zip

0 comments on commit 2dc6d2a

Please sign in to comment.