mirror of
https://github.com/quatalog/quatalog.git
synced 2024-11-20 05:43:49 +00:00
30 lines
640 B
YAML
30 lines
640 B
YAML
name: Autocompile
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build scraper
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout main branch
|
|
uses: actions/checkout@v3
|
|
- name: Compile (make)
|
|
run: |
|
|
cd bin
|
|
make
|
|
- name: Push compiled binary
|
|
run: |
|
|
git config --global user.name "Quatalog Compiler"
|
|
git config --global user.email "github_actions@quatalog.com"
|
|
git add bin
|
|
git commit -m "Recompile scraper : $(date)" || exit 0
|
|
git push
|