-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Should fix CI/CD Pull Requests and tag version bumping (instead of defaulting to refs/head/master)
- Loading branch information
1 parent
3fbb0d5
commit 6180b3c
Showing
1 changed file
with
12 additions
and
2 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# | ||
# | ||
# By default the binaries generated by this workflow are compiled using kisak-physics and RocketUI (client) by default | ||
# 02/2022 update: Now it should bump tag version so GitHub doesn't panic about it on every push | ||
name: CI-Workflow | ||
on: | ||
push: | ||
|
@@ -35,17 +36,25 @@ jobs: | |
run: cd build && cmake .. -DUSE_KISAK_PHYSICS=1 -DDEDICATED=1 && make -j2 && cd ${{ env.GITHUB_WORKSPACE }} | ||
- name: Compressing assets... | ||
run: cd .. && zip -9 -r game_dedicated-kphys.zip game && rm -rf game && cd ${{ env.GITHUB_WORKSPACE }} | ||
- name: Create tag version | ||
if: github.event_name != 'pull_request' | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create release | ||
if: github.event_name != 'pull_request' | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
with: | ||
draft: false | ||
prerelease: false | ||
release_name: AutoRelease-Linux | ||
tag_name: ${{ github.ref }} | ||
release_name: AutoRelease ${{ steps.tag_version.outputs.new_tag }} | ||
tag_name: ${{ steps.tag_version.outputs.new_tag }} | ||
- name: Publish game client artifact | ||
if: github.event_name != 'pull_request' | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
@@ -55,6 +64,7 @@ jobs: | |
asset_name: game_client-kphys.zip | ||
asset_content_type: application/zip | ||
- name: Publish game dedicated artifact | ||
if: github.event_name != 'pull_request' | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|