v7.8.0 #80
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |