mirror of https://github.com/OpenIPC/firmware.git
Fix matrix ci to resolve creating release issue and build it on each commit (not schedule) (#362)
* [skip ci] Fix matrix ci to resolve creating release issue and build it on each commit (not schedule)pull/363/head
parent
67e21cea55
commit
3837e9c8d7
|
@ -10,13 +10,11 @@ on:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- production
|
- master
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
schedule:
|
|
||||||
- cron: "00 03 * * *"
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -75,6 +73,28 @@ jobs:
|
||||||
path: ${{ env.SDK_PATH }}
|
path: ${{ env.SDK_PATH }}
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
if: ${{ !env.ACT && github.event_name != 'pull_request' }}
|
||||||
|
uses: actions/create-release@v1
|
||||||
|
continue-on-error: true
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ env.TAG_NAME }}
|
||||||
|
release_name: ${{ env.RELEASE_NAME }}
|
||||||
|
draft: false
|
||||||
|
prerelease: ${{ env.PRERELEASE }}
|
||||||
|
|
||||||
|
- name: Upload SDK to release
|
||||||
|
if: ${{ !env.ACT && github.event_name != 'pull_request' }}
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: ${{ env.SDK_PATH }}
|
||||||
|
asset_name: ${{ env.SDK_FILE }}
|
||||||
|
tag: ${{ env.TAG_NAME }}
|
||||||
|
overwrite: true
|
||||||
|
|
||||||
buildroot:
|
buildroot:
|
||||||
name: Build firmware
|
name: Build firmware
|
||||||
needs: toolchain
|
needs: toolchain
|
||||||
|
@ -226,6 +246,7 @@ jobs:
|
||||||
- name: Create release
|
- name: Create release
|
||||||
if: ${{ !env.ACT && github.event_name != 'pull_request' }}
|
if: ${{ !env.ACT && github.event_name != 'pull_request' }}
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue