mirror of
https://codeberg.org/spire/mapdownloader.git
synced 2026-06-03 18:24:11 +02:00
27 lines
No EOL
681 B
YAML
27 lines
No EOL
681 B
YAML
name: Build sourcepawn and commit
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**.sp'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Compile sourcepawn
|
|
uses: spiretf/spcomp@v0.1.0
|
|
with:
|
|
source: './plugin/mapdownloader.sp'
|
|
target: './plugin/mapdownloader.smx'
|
|
|
|
- name: Commit files
|
|
run: |
|
|
git config --local user.email "action@github.com"
|
|
git config --local user.name "GitHub Action"
|
|
git commit -m "Compile sourcepawn" -a
|
|
- name: Push changes
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }} |