Skip to content

Commit

Permalink
Update kstrike-compile.yml
Browse files Browse the repository at this point in the history
Should fix CI/CD Pull Requests and tag version bumping (instead of defaulting to refs/head/master)
  • Loading branch information
PANCHO7532B committed Feb 8, 2022
1 parent 3fbb0d5 commit 6180b3c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/kstrike-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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/github-tag-action@v6.0
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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 6180b3c

Please sign in to comment.