From 6180b3c64d8cbdbaa1d067171b4b86e87387ba5c Mon Sep 17 00:00:00 2001 From: PANCHO7532 <92986867+PANCHO7532B@users.noreply.github.com> Date: Tue, 8 Feb 2022 03:11:19 -0300 Subject: [PATCH] Update kstrike-compile.yml Should fix CI/CD Pull Requests and tag version bumping (instead of defaulting to refs/head/master) --- .github/workflows/kstrike-compile.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/kstrike-compile.yml b/.github/workflows/kstrike-compile.yml index bcd38a0e4..e49038231 100644 --- a/.github/workflows/kstrike-compile.yml +++ b/.github/workflows/kstrike-compile.yml @@ -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,7 +36,14 @@ 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 @@ -43,9 +51,10 @@ jobs: 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 }}