-
Notifications
You must be signed in to change notification settings - Fork 33
48 lines (38 loc) · 1.09 KB
/
deploy.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: Deployment Workflow
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Environment
run: |
pip install jinja2
generate/generate-python.py --output-dir=brping
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin deployment
git config user.email "[email protected]"
git config user.name "BlueRobotics-CI"
- name: install and test
run: |
echo "installing package..."
pip install . --user
echo "testing message api..."
python brping/pingmessage.py
- name: Generate and Commit Files
run: |
ci/deploy.sh
- name: Commit Changes
run: |
git commit -m "update autogenerated files for $(git rev-parse HEAD@{2})" || exit 0
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: deployment