mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-04-16 00:07:19 +02:00
Update 2 files
- /.github/workflows/main.yml - /GitLab.Main.sh
This commit is contained in:
parent
f378feb274
commit
7c5efb892e
30
.github/workflows/main.yml
vendored
Normal file
30
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: OcttKB
|
||||||
|
|
||||||
|
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
|
||||||
|
sudo apt install -y git wget npm python3 python3-pip
|
||||||
|
sudo npm install -g tiddlywiki
|
||||||
|
sudo pip3 install beautifulsoup4 html5lib
|
||||||
|
bash ./Bootstrap.sh
|
||||||
|
sh ./GitHub.Main.sh
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
|
with:
|
||||||
|
folder: public
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sh ./OcttKB.EmptyDate.sh
|
. ./Src.*.sh || true
|
||||||
sh ./SetupGitProfile.sh
|
sh ./OcttKB.EmptyDate.sh || true
|
||||||
|
|
||||||
# Ensure important directories
|
# Ensure important directories
|
||||||
rm -rf ./Output.tmp || true
|
rm -rf ./Output.tmp || true
|
||||||
@ -16,6 +16,5 @@ mkdir -vp ./public
|
|||||||
cp -v ./Output.tmp/index.html ./public/index.html
|
cp -v ./Output.tmp/index.html ./public/index.html
|
||||||
sh ./Main.sh
|
sh ./Main.sh
|
||||||
|
|
||||||
CommitCheck="$(git log -1 --pretty=%B)"
|
SetupGitProfile
|
||||||
CommitMsg0="OcttKB Cross-Repo Sync"
|
TryCrossRepoSync
|
||||||
[ "$CommitCheck" != "$CommitMsg0 (HTML to Raw)" ] && [ "$CommitCheck" != "$CommitMsg0 (Raw to HTML)" ] && sh ./GitLab.CrossRepoSync.sh || true
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user