unos-fe: ciを追加
/ build-angular (pull_request) Failing after 19s Details
/ build-docker-image (pull_request) Has been skipped Details

This commit is contained in:
usbharu 2024-03-13 16:51:00 +09:00
parent 49a81ca15a
commit 7d85becc77
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
1 changed files with 27 additions and 0 deletions

View File

@ -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