From d13974fc9f7860258ca968952ee8dbe19b21ff24 Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Thu, 14 Nov 2024 10:23:06 +0900 Subject: [PATCH] chore(ci): add build process --- .gitea/workflows/deploy_site.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/deploy_site.yml diff --git a/.gitea/workflows/deploy_site.yml b/.gitea/workflows/deploy_site.yml new file mode 100644 index 0000000..b603449 --- /dev/null +++ b/.gitea/workflows/deploy_site.yml @@ -0,0 +1,18 @@ +on: + push: + workflow_dispatch: + +jobs: + deploy_site: + runs-on: ubuntu-latest + container: + image: src.pmh.codes/build-tools/react2minio:latest + steps: + - uses: actions/checkout@v4 + - run: mc alias set minio http://minio-service.minio.svc.cluster.local:9000 ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }} + - run: apk add zip + - run: npm i + - run: npm run build + - run: zip -r force_delete.zip force_delete.js manifest.json icons + - run: mc cp $PWD/force_delete.zip minio/releases/force_delete/force_delete_packed.zip +