forked from kiibohd/controller
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.26 KB
/
Copy pathrelease.yml
File metadata and controls
55 lines (52 loc) · 1.26 KB
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
name: Release Environment
on:
push:
tags:
- 'v*.*.*'
env:
PIPENV_ACTIVE: 1
deb_packages: >-
binutils-arm-none-eabi
dfu-util
exuberant-ctags
gcc-arm-none-eabi
ninja-build
python3-setuptools
tree
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ${{ env.deb_packages }}
- name: Install kll compiler
run: |
python3 -m pip install --upgrade pip
python3 -m pip install kll
- name: Build
working-directory: Lib/CMake
run: ./githubaction_deploy.bash
- uses: actions/upload-artifact@v1
if: always()
with:
name: Release Firmware
path: Keyboards/firmware
- uses: actions/upload-artifact@v1
if: always()
with:
name: Release Bootloader
path: Bootloader/Builds/bootloader
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
prerelease: true
files: |
Keyboards/firmware/*.dfu.bin
Bootloader/Builds/bootloader/*.bootloader.bin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}