2024-10-15 05:05:28 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy_site:
|
|
|
|
runs-on: ubuntu-latest
|
2024-11-12 11:02:48 +00:00
|
|
|
container:
|
|
|
|
image: src.pmh.codes/build-tools/react2minio:latest
|
2024-10-15 05:05:28 +00:00
|
|
|
steps:
|
2024-10-15 05:23:30 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-11-12 11:02:48 +00:00
|
|
|
- run: mc alias set minio http://minio-service.minio.svc.cluster.local:9000 ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }}
|
2024-11-13 06:29:35 +00:00
|
|
|
- run: echo "export const VERSION = '$(git rev-parse --short HEAD)'" > src/version.ts
|
2024-11-12 11:02:48 +00:00
|
|
|
- run: pnpm i
|
|
|
|
- run: pnpm build
|
2024-11-12 11:04:02 +00:00
|
|
|
- run: mc mirror $PWD/dist/ minio/ptools --overwrite
|
2024-10-15 05:05:28 +00:00
|
|
|
|