blob: d8fcbb417d1277fb6c713a379e0f82a3ede4b0a1 (
plain)
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
|
env:
BUILD_DEPENDENCIES: git make mkdocs python3-markdown-include python3-pip
on:
push:
branches:
- main
jobs:
test:
runs-on: docker
container:
image: debian:latest
steps:
- name: Install OS Dependencies
run: |
apt-get update
apt-get install --yes $BUILD_DEPENDENCIES
- name: Clone Repository
run: |
mkdir app
git clone -b ${{ github.ref_name }} ${{ github.server_url }}/${{ github.repository }} app
- name: Build docs
run: |
cd app
make docs
- name: Copy all files
run: |
cp -r app/docs/site/* .
rm -rf app
- name: Deploy with git
run: |
git init
git config --global user.name "Codeberg Pages"
git config --global user.email ""
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@codeberg.org/eduVPN/eduvpn-common
git checkout -b pages
git add --all
git commit -am "Pages: Deploy $GITHUB_SHA" && git push --force -u origin pages
|