From bdfa793c49d1f71f15c328bc33f5af73cca692b9 Mon Sep 17 00:00:00 2001 From: Yurii Date: Mon, 18 May 2026 00:36:30 +0300 Subject: [PATCH] chore: update build workflow --- .github/workflows/build.yaml | 60 +++++++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 536d86b..dcf3aa2 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,17 +3,29 @@ name: Build on: workflow_dispatch: push: - paths-ignore: ["assets/**", "tools/**", "**/*.md", "LICENSE"] + paths-ignore: + - "assets/**" + - "tools/**" + - "**/*.md" + - "LICENSE" + pull_request: - paths-ignore: ["assets/**", "tools/**", "**/*.md", "LICENSE"] + paths-ignore: + - "assets/**" + - "tools/**" + - "**/*.md" + - "LICENSE" concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true +permissions: + contents: read + jobs: prepare: - name: Prepare matrix + name: Prepare (get envs) runs-on: ubuntu-latest outputs: envs: ${{ steps.envs.outputs.envs }} @@ -33,7 +45,8 @@ jobs: pip install --upgrade platformio pip install --upgrade intelhex - - id: envs + - name: Get environments + id: envs shell: bash run: | ENVS=$( @@ -98,3 +111,42 @@ jobs: path: | build/*.bin build/*.elf + + release: + name: Release Dev + runs-on: ubuntu-latest + needs: build + permissions: + contents: write + if: ${{ github.repository_owner == 'Laxilef' && github.ref == 'refs/heads/async' }} + + steps: + - name: Download artifacts + uses: actions/download-artifact@v5 + with: + path: artifacts + merge-multiple: true + + - name: Delete old release assets + uses: mknejp/delete-release-assets@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: dev + fail-if-no-assets: false + fail-if-no-release: false + assets: | + *.bin + *.elf + + - name: Publish Dev release + uses: softprops/action-gh-release@v3 + with: + tag_name: dev + target_commitish: async + name: Dev (unstable) + prerelease: true + make_latest: false + generate_release_notes: true + files: | + artifacts/*.bin + artifacts/*.elf