mirror of
https://github.com/go-i2p/www.git
synced 2025-06-24 19:24:49 -04:00
38 lines
1007 B
YAML
38 lines
1007 B
YAML
name: Build and Deploy to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout 🛎️
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install dependencies 📦
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install python3 python3-polib python3-docutils pandoc python3-pip markdown
|
|
pip3 install pypandoc
|
|
|
|
- name: Run build script 🔧
|
|
run: |
|
|
chmod +x ./*.sh
|
|
./run.sh
|
|
|
|
- name: Deploy to GitHub Pages 🚀
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
folder: ./processed # The folder the action should deploy
|
|
branch: gh-pages # The branch the action should deploy to
|
|
clean: true # Automatically remove deleted files from the deploy branch
|