Skip to content

Commit 9c8f821

Browse files
authored
Add a separate build workflow
1 parent afb89ec commit 9c8f821

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
if: ${{ github.ref == 'refs/heads/deploy-test' || github.ref == 'refs/heads/master' }}
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: build
15+
run: |
16+
pip3 install -r jenkins-requirements.txt
17+
python3 ./freeze_web.py
18+
19+
- name: push to build branch
20+
run: |
21+
git config user.name "github-actions"
22+
git config user.email "github-actions@github.com"
23+
24+
git checkout -B build
25+
git add app/build
26+
git commit -m "ci: update build artifacts" || echo "Nothing to commit"
27+
git push origin build --force

0 commit comments

Comments
 (0)