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:44:56 +00:00
|
|
|
- run: |
|
2024-10-15 07:38:18 +00:00
|
|
|
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
|
|
|
|
apt-get install -y nodejs
|
2024-10-27 05:06:13 +00:00
|
|
|
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 }}
|
2024-10-15 06:44:56 +00:00
|
|
|
- run: npm i
|
2024-10-27 05:06:13 +00:00
|
|
|
- run: npm run build
|
|
|
|
- run: /tmp/mc mirror $PWD/dist/ minio/ptools --overwrite
|
2024-10-15 05:05:28 +00:00
|
|
|
|