Skip to content

Commit

Permalink
update CI: setup-amxxpawn to v1.1.0 and deps
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyShorokhov committed Apr 9, 2024
1 parent 6af77ac commit 977baf2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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:
COMMIT_SHA: ${{ steps.declare_sha.outputs.COMMIT_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 Down Expand Up @@ -78,7 +78,7 @@ jobs:
run: sed -i "s|%VERSION%|$PLUGIN_VERSION|g" redm_version.inc

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

Expand Down Expand Up @@ -109,22 +109,22 @@ jobs:
mv cstrike/ publish/
- name: Deploy artifact
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4.3.1
with:
name: ReDeathmatch-${{ steps.declare_sha.outputs.COMMIT_SHA }}-dev
path: publish/*

publish:
name: "Publish release"
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs: [build]
if: |
github.event_name == 'release' &&
github.event.action == 'published' &&
startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifact
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.4
with:
name: ReDeathmatch-${{ needs.build.outputs.COMMIT_SHA }}-dev

Expand All @@ -133,7 +133,7 @@ jobs:
run: 7z a -mm=Deflate -mfb=258 -mpass=15 -r ReDeathmatch-${{ 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 977baf2

Please sign in to comment.