-
Notifications
You must be signed in to change notification settings - Fork 56
36 lines (33 loc) · 977 Bytes
/
release.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
name: Deploy
on:
release:
types: [created]
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
build:
name: Attach firmware to release
runs-on: ubuntu-22.04
container:
image: ghcr.io/shanteacontrols/opendeck:latest
options: --user root
steps:
- name: Mark repository as safe
run: git config --global --add safe.directory /__w/OpenDeck/OpenDeck
- name: Pull the repository and submodules
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Build
run: |
git fetch --tags
./scripts/build_targets.sh --type=build
./scripts/copy_release_binaries.sh --build-dir=build --copy-dir=release
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag_name="${GITHUB_REF##*/}"
hub release edit $(find ./release -type f -printf "-a %p ") -m "" "$tag_name"