Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 9, 2024
1 parent 46e64ab commit c5c0255
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ on:
jobs:
build:
name: "Build"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
sha: ${{ steps.declare_sha.outputs.sha }}
semver: ${{ steps.declare_sha.outputs.semver }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

Expand All @@ -30,7 +30,7 @@ jobs:
github.event_name == 'release' &&
github.event.action == 'published' &&
startsWith(github.ref, 'refs/tags/')
uses: booxmedialtd/ws-action-parse-semver@v1
uses: booxmedialtd/ws-action-parse-semver@v1.4.7
with:
input_string: ${{ github.ref }}
version_extractor_regex: '\/v(.*)$'
Expand Down Expand Up @@ -80,9 +80,9 @@ jobs:
run: sed -i "s|%CA_VERSION%|$PLUGIN_VERSION|g" ChatAdditions.inc

- name: Setup AMXXPawn Compiler
uses: wopox1337/setup-amxxpawn@v1.0.2
uses: wopox1337/setup-amxxpawn@v1.1.0
with:
version: "1.10.5428"
version: "1.10.5466"

- name: Compile AMXX plugins
working-directory: cstrike/addons/amxmodx/scripting/
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
mv cstrike/ publish/
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.3.1
with:
name: ChatAdditions-${{ env.COMMIT_SHA }}-dev
path: publish/*
Expand All @@ -128,7 +128,7 @@ jobs:
startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4.1.4
with:
name: ChatAdditions-${{needs.build.outputs.sha}}-dev

Expand All @@ -137,7 +137,7 @@ jobs:
run: 7z a -mm=Deflate -mfb=258 -mpass=15 -r ChatAdditions-v${{needs.build.outputs.semver}}.zip cstrike/

- name: Publish artifacts
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2.0.4
id: publish-job
if: |
startsWith(github.ref, 'refs/tags/') &&
Expand Down

0 comments on commit c5c0255

Please sign in to comment.