All checks were successful
/ Sourcemod v1.11.x (push) Successful in 29s
/ Sourcemod v1.12.x (push) Successful in 26s
/ Sourcemod v1.13.x (push) Successful in 26s
/ Create release for tags (push) Has been skipped
/ Deploy release (push) Has been skipped
/ Build Website (push) Successful in 46s
/ deploy (push) Successful in 10s
66 lines
No EOL
1.9 KiB
YAML
66 lines
No EOL
1.9 KiB
YAML
on:
|
|
push:
|
|
paths:
|
|
- 'scripting/**'
|
|
- '.forgejo/workflows/plugin.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
strategy:
|
|
matrix:
|
|
sm-version: [ '1.11.x', '1.12.x', '1.13.x']
|
|
name: Sourcemod v${{ matrix.sm-version }}
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Setup sourcepawn
|
|
uses: https://github.com/rumblefrog/setup-sp@bb7306e551914d48b2d8405dba17ddc46a4a12a2
|
|
with:
|
|
version: ${{ matrix.sm-version }}
|
|
- name: Build Plugins
|
|
env:
|
|
SPCOMP_PATH: spcomp
|
|
run: chmod +x compile_all.sh && ./compile_all.sh
|
|
- name: Upload artifacts
|
|
uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.sm-version }}.zip
|
|
path: plugins/*.smx
|
|
|
|
release:
|
|
name: Create release for tags
|
|
# Only release on tags
|
|
if: startsWith(forgejo.ref, 'refs/tags')
|
|
runs-on: docker
|
|
needs: build
|
|
steps:
|
|
- name: Pull Artifact
|
|
uses: https://data.forgejo.org/forgejo/download-artifact@v4
|
|
with:
|
|
merge-multiple: true
|
|
- uses: actions/forgejo-release@v2.7.3
|
|
with:
|
|
direction: upload
|
|
release-dir: .
|
|
prerelease: true
|
|
override: true
|
|
|
|
deploy:
|
|
name: Deploy release
|
|
# Only deploy on tags
|
|
if: startsWith(forgejo.ref, 'refs/tags')
|
|
runs-on: ubuntu-full
|
|
needs: build
|
|
steps:
|
|
- name: Pull Artifact
|
|
uses: https://data.forgejo.org/forgejo/download-artifact@v4
|
|
with:
|
|
name: 1.12.x.zip
|
|
- name: Install SSH Key
|
|
uses: https://github.com/shimataro/ssh-key-action@v2.7.0
|
|
with:
|
|
key: ${{ secrets.REMOTE_PRIVATE_KEY }}
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
- name: upload plugin to server
|
|
run: rsync --info=NAME *.smx "${{ secrets.REMOTE_USER }}@${{ secrets.REMOTE_HOST }}:${{ secrets.PLUGINS_PATH }}" |