forked from acalatrava/openhaystack_moko
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (22 loc) · 754 Bytes
/
build.yml
File metadata and controls
29 lines (22 loc) · 754 Bytes
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
name: Build and Release
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker build
run: docker build --platform linux/amd64 --tag si-moko .
- name: Docker run
run: docker run --platform linux/amd64 --env "PUBLIC_KEY_HEX=${{ secrets.PUBLIC_KEY_HEX }}" --name firmware-container si-moko
- name: Copy firmware from container
run: docker cp firmware-container:/spaceinvader/dist/firmware.bin ${{ github.workspace }}/firmware.bin
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ${{ github.workspace }}/firmware.bin
tag_name: firmware