ptools/.gitea/workflows/deploy_site.yml
Minhyeok Park 92d51b70d6
All checks were successful
/ deploy_site (push) Successful in 2m19s
fix: add common npm utils
2024-10-15 15:44:56 +09:00

20 lines
616 B
YAML

on:
push:
workflow_dispatch:
jobs:
deploy_site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
apt-get update -y
apt-get install -y npm
- run: npm i -g n && n lts
- run: npm i
- run: wget https://dl.min.io/client/mc/release/linux-arm64/mc -O /tmp/mc
- run: chmod +x /tmp/mc
- run: /tmp/mc alias set minio http://minio-service.minio.svc.cluster.local:9000 ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }}
- run: /tmp/mc mirror $PWD/ minio/ptools --exclude '.git/*' --exclude '.gitea/*' --overwrite