Skip to content

fix(bricks): overwrite the brick variables of an app (#44) #17

fix(bricks): overwrite the brick variables of an app (#44)

fix(bricks): overwrite the brick variables of an app (#44) #17

Workflow file for this run

name: Release arduino-app-cli
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
env:
PROJECT_NAME: "arduino-app-cli"
GITHUB_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }}
GITHUB_USERNAME: ArduinoBot
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04]
arch: [amd64, arm64]
runs-on: ${{ matrix.os }}
steps:
- name: Set env vars
run: |
echo "TAG_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo "creating tag ${TAG_VERSION}"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git for private repo cloning
run: |
git config --global url."https://${{ env.GITHUB_USERNAME }}:${{ env.GITHUB_TOKEN }}@github.com".insteadOf "https://github.com"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build deb
run: |
go tool task build-deb VERSION=${TAG_VERSION} ARCH=${{ matrix.arch }} RELEASE="true"
- name: Create Github Release and upload artifacts
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: true
artifacts: build/*.deb
allowUpdates: true