sitoctt/.github/workflows/main.yml

35 lines
810 B
YAML
Raw Normal View History

2022-08-29 15:41:44 +02:00
name: Build and Deploy with staticoso
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
page_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
sudo apt update
2022-08-30 00:35:13 +02:00
sudo apt install -y software-properties-common
2022-08-29 15:41:44 +02:00
sudo add-apt-repository ppa:deadsnakes/ppa
2022-08-30 00:35:13 +02:00
sudo apt update
sudo apt install -y npm python3.10 curl git
2022-08-29 15:41:44 +02:00
curl -sS https://bootstrap.pypa.io/get-pip.py | sudo python3.10
sudo pip3 install lxml
2022-08-30 00:35:13 +02:00
sudo npm install -g pug-cli
2024-08-27 14:30:28 +02:00
sh ./Scripts/Requirements.sh
sh ./Scripts/Produce.sh
2022-08-29 15:41:44 +02:00
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
2024-08-27 14:30:28 +02:00
folder: build/public