chore: update build workflow

This commit is contained in:
Yurii
2026-05-18 00:36:30 +03:00
parent 25280bf9b1
commit bdfa793c49
+56 -4
View File
@@ -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