-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (40 loc) · 1.14 KB
/
web.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: build web
on:
pull_request:
paths:
- "src/web/app/**"
jobs:
web:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Use node
uses: actions/setup-node@v4
with:
cache: "npm"
cache-dependency-path: "src/web/app/package-lock.json"
- name: Installing project dependencies
run: npm install
working-directory: src/web/app
- name: "Create env file"
run: |
touch src/web/app/.env
echo VUE_APP_BACKEND_URL=localhost:8080 >> src/web/app/.env
- name: Building the project
run: npm run build
working-directory: src/web/app
- uses: vimtor/[email protected]
name: Create zip file
with:
files: src/web/app/dist/
dest: src/web/app/dist.zip
- name: Commit & Push changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Updating web build [skip ci]
file_pattern: src/web/app/dist.zip