2024-10-15 05:05:28 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy_site:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-10-15 05:23:30 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-10-15 06:32:16 +00:00
|
|
|
- run: wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.bashrc" SHELL="$(which bash)" bash -
|
2024-10-15 06:33:16 +00:00
|
|
|
- run: /root/.local/share/pnpm/pnpm i
|
2024-10-15 05:14:00 +00:00
|
|
|
- run: wget https://dl.min.io/client/mc/release/linux-arm64/mc -O /tmp/mc
|
2024-10-15 05:05:28 +00:00
|
|
|
- run: chmod +x /tmp/mc
|
2024-10-15 05:14:00 +00:00
|
|
|
- run: /tmp/mc alias set minio http://minio-service.minio.svc.cluster.local:9000 ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }}
|
2024-10-15 05:27:05 +00:00
|
|
|
- run: /tmp/mc mirror $PWD/ minio/ptools --exclude '.git/*' --exclude '.gitea/*'
|
2024-10-15 05:05:28 +00:00
|
|
|
|