-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (66 loc) · 1.95 KB
/
kibot-ci.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CI
on:
push:
paths-ignore:
- "**.md"
pull_request:
branches:
- 'main'
workflow_dispatch:
# Allow to stop obsolete workflows
concurrency:
group: ci-buildtrain-${{ github.ref }}-1
cancel-in-progress: true
jobs:
kibot:
runs-on: ubuntu-latest
if: github.ref_type != 'tag'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: INTI-CMNB/KiBot@v2_k8
with:
config: .kibot.yaml
board: hw-openmower-yardforce.kicad_pcb
verbose: 1
- uses: actions/upload-artifact@v4
with:
# Name of the artifact to upload.
# Optional. Default is 'artifact'
name: hw-openmower-yardforce
# A file, directory or wildcard pattern that describes what to upload
# Required.
path: release
tagged-release:
runs-on: ubuntu-latest
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: INTI-CMNB/KiBot@v2_k8
with:
config: .kibot.yaml
board: hw-openmower-yardforce.kicad_pcb
- name: 'Fix permissions on release/'
run: sudo chmod 0777 release
- uses: actions/upload-artifact@v4
with:
# Name of the artifact to upload.
# Optional. Default is 'artifact'
name: hw-openmower-yardforce
# A file, directory or wildcard pattern that describes what to upload
# Required.
path: release
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: release
- name: Deploy release
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release
destination_dir: release