From 7d85becc77574f2f40d9900c2794f3a98a100080 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:51:00 +0900 Subject: [PATCH] =?UTF-8?q?unos-fe:=20ci=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/unos-fe-build.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/unos-fe-build.yaml diff --git a/.gitea/workflows/unos-fe-build.yaml b/.gitea/workflows/unos-fe-build.yaml new file mode 100644 index 0000000..a98cf77 --- /dev/null +++ b/.gitea/workflows/unos-fe-build.yaml @@ -0,0 +1,27 @@ +on: + pull_request: + types: + - labeled + - opened + - synchronize + - closed + workflow_run: + +permissions: + pull-requests: read + +jobs: + build-angular: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./unos-fe + if: contains(github.event.pull_request.labels.*.name,'unos-fe') + + steps: + - uses: actions/checkout@v3 + - run: npm ci + - run: npm run build + - run: tar cvf dist/unos-fe/unos-fe.tar dist/unos-fe/* + - run: curl --user usbharu:${{ secrets.DEPLOY_TOKEN }} --upload-file dist/unos-fe/unos-fe.tar https://git.usbharu.dev/api/packages/usbharu/generic/unos-fe/${{ github.sha }}/unos-fe.tar + if: github.event.pull_request.merged == true \ No newline at end of file