ptools-v2/.gitea/workflows/deploy_site.yml
Minhyeok Park 5bd0bf1a95
All checks were successful
/ deploy_site (push) Successful in 1m25s
chore(fix): use dist folder for output
2024-10-27 14:06:13 +09:00

20 lines
614 B
YAML

on:
push:
workflow_dispatch:
jobs:
deploy_site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
apt-get install -y nodejs
wget https://dl.min.io/client/mc/release/linux-arm64/mc -O /tmp/mc
chmod +x /tmp/mc
/tmp/mc alias set minio http://minio-service.minio.svc.cluster.local:9000 ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }}
- run: npm i
- run: npm run build
- run: /tmp/mc mirror $PWD/dist/ minio/ptools --overwrite