This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 334dd51
Showing
8 changed files
with
878 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Compile and release | ||
|
||
on: | ||
push: | ||
branches: main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set environment variables | ||
run: echo SCRIPTS_PATH=$(pwd) >> $GITHUB_ENV | ||
|
||
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }} | ||
id: setup_sp | ||
uses: rumblefrog/setup-sp@master | ||
with: | ||
version: "1.11.x" | ||
version-file: ./scripting/automapchange.sp | ||
|
||
- name: Compile plugins | ||
run: | | ||
mkdir ../plugins | ||
spcomp -w234 -O2 -v2 -i"include" -o"../plugins/automapchange.smx" automapchange.sp | ||
echo "===OUT FILES===" | ||
ls ../plugins | ||
echo "===VERSION===" | ||
echo ${{ steps.setup_sp.outputs.plugin-version }} | ||
working-directory: ${{ env.SCRIPTS_PATH }}/scripting | ||
|
||
- name: Install zip | ||
uses: montudor/action-zip@v1 | ||
|
||
- name: Zip output | ||
run: | | ||
zip -qq -y -r ${{ github.event.repository.name }}.zip configs plugins scripting extensions gamedata translations data | ||
working-directory: ${{ env.SCRIPTS_PATH }} | ||
|
||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ github.ref_name }} | ||
artifacts: "${{ github.event.repository.name }}.zip" | ||
draft: false | ||
allowUpdates: true | ||
prerelease: false | ||
replacesArtifacts: true |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Test Sourcemod compilation | ||
|
||
on: | ||
pull_request: | ||
branches: main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set environment variables | ||
run: echo SCRIPTS_PATH=$(pwd) >> $GITHUB_ENV | ||
|
||
- name: Setup SourcePawn Compiler ${{ matrix.SM_VERSION }} | ||
id: setup_sp | ||
uses: rumblefrog/setup-sp@master | ||
with: | ||
version: "1.11.x" | ||
version-file: ./scripting/automapchange.sp | ||
|
||
- name: Compile plugins | ||
run: | | ||
mkdir ../plugins | ||
spcomp -w234 -O2 -v2 -i"include" -o"../plugins/automapchange.smx" automapchange.sp | ||
echo "===OUT FILES===" | ||
ls ../plugins | ||
echo "===VERSION===" | ||
echo ${{ steps.setup_sp.outputs.plugin-version }} | ||
working-directory: ${{ env.SCRIPTS_PATH }}/scripting |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.vscode/ |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## Release Notes | ||
|
||
## [1.0.0] | ||
|
||
### Added | ||
|
||
### Fixed | ||
|
||
### Removed |
Oops, something went wrong.