aboutsummaryrefslogtreecommitdiff
path: root/.gitea/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.gitea/workflows')
-rw-r--r--.gitea/workflows/docs-deploy.yml48
-rw-r--r--.gitea/workflows/renovate.yml25
-rw-r--r--.gitea/workflows/test.yml27
3 files changed, 100 insertions, 0 deletions
diff --git a/.gitea/workflows/docs-deploy.yml b/.gitea/workflows/docs-deploy.yml
new file mode 100644
index 0000000..7656a88
--- /dev/null
+++ b/.gitea/workflows/docs-deploy.yml
@@ -0,0 +1,48 @@
+name: Docs Deploy
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ deploy-docs:
+ name: Build and Deploy MkDocs
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v6
+
+ - name: Set up Python
+ uses: actions/setup-python@v6
+ with:
+ python-version: "3.14"
+
+ - name: Install docs dependencies
+ run: pip install -r requirements.txt
+
+ - name: Build MkDocs site
+ run: mkdocs build
+
+ - name: Install rsync
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y rsync openssh-client
+
+ - name: Prepare SSH key
+ env:
+ SSH_KEY_B64: ${{ secrets.ROOT_CI_KEY_B64 }}
+ run: |
+ umask 077
+ mkdir -p ~/.ssh
+ printf '%s' "$SSH_KEY_B64" | base64 -d > ~/.ssh/id_root_ci
+ chmod 600 ~/.ssh/id_root_ci
+
+ - name: Deploy via rsync
+ env:
+ DEPLOY_HOST: ${{ secrets.FPARKAN_DEPLOY_HOST }}
+ DEPLOY_PORT: ${{ secrets.FPARKAN_DEPLOY_PORT }}
+ run: |
+ rsync -rlz --delete \
+ -e "ssh -p ${DEPLOY_PORT} -i ~/.ssh/id_root_ci -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new" \
+ site/ "gitea-runner@${DEPLOY_HOST}:./"
diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml
new file mode 100644
index 0000000..9b407ca
--- /dev/null
+++ b/.gitea/workflows/renovate.yml
@@ -0,0 +1,25 @@
+name: RenovateBot
+
+on:
+ schedule:
+ - cron: "@daily"
+
+jobs:
+ renovate:
+ container: ghcr.io/renovatebot/renovate:43
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v6
+
+ - name: Run renovate
+ run: |
+ renovate
+ env:
+ GITHUB_COM_TOKEN: ${{ secrets.RENOVATE_GITHUB_TOKEN }}
+ LOG_LEVEL: ${{ vars.RENOVATE_LOG_LEVEL }}
+ RENOVATE_CONFIG_FILE: renovate.config.cjs
+ RENOVATE_LOG_LEVEL: ${{ vars.RENOVATE_LOG_LEVEL }}
+ RENOVATE_REPOSITORIES: ${{ gitea.repository }}
+ RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml
new file mode 100644
index 0000000..cf314cb
--- /dev/null
+++ b/.gitea/workflows/test.yml
@@ -0,0 +1,27 @@
+name: Test
+
+on: [push, pull_request]
+
+jobs:
+ lint:
+ name: Lint
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v6
+ - uses: dtolnay/rust-toolchain@stable
+ with:
+ components: clippy
+ - name: Cargo check
+ run: cargo check --workspace --all-targets --all-features
+ - name: Clippy (deny warnings)
+ run: cargo clippy --workspace --all-targets --all-features -- -D warnings
+
+ test:
+ name: Test
+ runs-on: ubuntu-latest
+ needs: lint
+ steps:
+ - uses: actions/checkout@v6
+ - uses: dtolnay/rust-toolchain@stable
+ - name: Cargo test
+ run: cargo test --workspace --all-features -- --nocapture