Files
unos/.gitea/workflows/unos-fe-build.yaml
T
usbharu 96d7379115
/ build-tool (pull_request) Has been skipped
/ build-angular (pull_request) Successful in 48s
/ build-docker-image (pull_request) Has been skipped
unos-fe: ciを修正
2024-03-14 13:04:11 +09:00

29 lines
795 B
YAML

on:
pull_request:
types:
- labeled
- opened
- synchronize
- closed
workflow_run:
permissions:
pull-requests: read
jobs:
build-angular:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-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: cd dist/unos-fe/browser && tar cvf unos-fe.tar *
- run: curl --user usbharu:${{ secrets.DEPLOY_TOKEN }} --upload-file dist/unos-fe/browser/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