-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (44 loc) · 1.52 KB
/
build-and-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build and Deploy
on:
push:
branches: [master]
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Download pandoc
uses: dsaltares/[email protected]
with:
repo: jgm/pandoc
version: tags/2.19.2
file: pandoc-2.19.2-1-amd64.deb
target: pandoc-2.19.2-1-amd64.deb
- name: Install and Build
run: |
sudo dpkg -i pandoc-2.19.2-1-amd64.deb
pandoc --version
make
- name: Checkout liballeg
uses: actions/checkout@v4
with:
repository: liballeg/liballeg.github.io
ssh-key: ${{ secrets.LIBALLEG_DEPLOY_KEY }}
ref: master
path: liballeg
- name: Deploy
run: |
cd liballeg
git config user.name "allebot"
git config user.email "[email protected]"
find . -type f ! \( -path "./.git/*" -o -path "./CNAME" -o -path "./donations.html" -o -path "./a5docs/4*" -o -path "./a5docs/5*" -o -path "./a5docs/trunk*" -o -path "./docs/docs/*" -o -path "./search/*" -o -path "./allegro-manual/*" -o -path "./OldFiles/*" -o -path "./files/*" \) -exec rm -f {} +
cp -R ../OUT/* .
git add .
git diff-index --quiet HEAD || git commit -m "Automatic update from allegrowww2"
git push