-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd5a1fb
commit 4e74487
Showing
1 changed file
with
13 additions
and
7 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 |
---|---|---|
|
@@ -15,9 +15,6 @@ jobs: | |
build: | ||
name: "Build" | ||
runs-on: ubuntu-latest | ||
outputs: | ||
COMMIT_SHA: ${{ steps.declare_sha.outputs.COMMIT_SHA }} | ||
SEMVER: ${{ steps.declare_sha.outputs.SEMVER }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -41,7 +38,16 @@ jobs: | |
run: | | ||
SHA=$(git rev-parse --short HEAD) | ||
echo "COMMIT_SHA=$SHA" >> $GITHUB_OUTPUT | ||
echo "SEMVER=${{ steps.semver_parser.outputs.fullversion }}" >> $GITHUB_OUTPUT | ||
echo "SEMVER_PATCH=${{ steps.semver_parser.outputs.patch }}.${{ steps.semver_parser.outputs.prerelease }}" >> $GITHUB_OUTPUT | ||
- name: Use parsed semver | ||
run: | | ||
echo "-- ${{ steps.semver_parser.outputs.major }}" | ||
echo "-- ${{ steps.semver_parser.outputs.minor }}" | ||
echo "-- ${{ steps.semver_parser.outputs.patch }}" | ||
echo "-- ${{ steps.semver_parser.outputs.prerelease }}" | ||
echo "-- ${{ steps.semver_parser.outputs.build }}" | ||
echo "-- ${{ steps.semver_parser.outputs.fullversion }}" | ||
- name: Setup latest ReAPI includes | ||
env: | ||
|
@@ -68,14 +74,14 @@ jobs: | |
github.event.action == 'published' && | ||
startsWith(github.ref, 'refs/tags/') | ||
env: | ||
PLUGIN_VERSION: "${{ steps.declare_sha.outputs.SEMVER }}" | ||
run: sed -i "s|%VERSION%|$PLUGIN_VERSION|g" redm_version.inc | ||
PLUGIN_VERSION: "${{ steps.declare_sha.outputs.SEMVER_PATCH }}" | ||
run: sed -i "s|manual|$PLUGIN_VERSION|g" redm_version.inc | ||
|
||
- name: Update versions for plugins (only for artifacts builds) | ||
working-directory: cstrike/addons/amxmodx/scripting/include/ | ||
env: | ||
PLUGIN_VERSION: "${{ steps.declare_sha.outputs.COMMIT_SHA }}" | ||
run: sed -i "s|%VERSION%|$PLUGIN_VERSION|g" redm_version.inc | ||
run: sed -i "s|manual|$PLUGIN_VERSION|g" redm_version.inc | ||
|
||
- name: Setup AMXXPawn Compiler | ||
uses: wopox1337/[email protected] | ||
|