remove unused stuff #3
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: | |
| - "*" # Trigger on all tags | |
| env: | |
| GO_VERSION: "1.25.1" | |
| PROJECT_NAME: "arduino-app-cli" | |
| GITHUB_TOKEN: ${{ secrets.ARDUINOBOT_TOKEN }} | |
| GITHUB_USERNAME: ArduinoBot | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04] | |
| arch: [amd64, arm64] | |
| include: | |
| - os: ubuntu-22.04 | |
| platform-name: linux | |
| 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: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Install Task | |
| uses: arduino/setup-task@v2 | |
| with: | |
| version: 3.x | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Build deb | |
| if: matrix.platform-name == 'linux' | |
| run: | | |
| task build-deb:arduino-app-cli 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 |