Deploy #84
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] | |
jobs: | |
build: | |
name: Attach firmware to release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pull the repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup missing directories and files on the runner | |
run: | | |
mkdir -p ~/.ssh | |
touch ~/.gitconfig | |
- name: Prepare container | |
uses: devcontainers/[email protected] | |
with: | |
imageName: opendeck # Local name only | |
imageTag: latest # Local tag only | |
push: never | |
env: | | |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | |
- name: Build and upload | |
uses: devcontainers/[email protected] | |
with: | |
imageName: opendeck | |
imageTag: latest | |
push: never | |
runCmd: | | |
git fetch --tags | |
./scripts/build_targets.sh --type=build | |
./scripts/copy_release_binaries.sh --build-dir=build --copy-dir=release | |
tag_name="${GITHUB_REF##*/}" | |
hub release edit $(find ./release -type f -printf "-a %p ") -m "" "$tag_name" |