mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
github: Update workflows.
* Fix build trigger on create branch.
This commit is contained in:
parent
28a3b8c20d
commit
802c997e4e
10
.github/workflows/firmware.yml
vendored
10
.github/workflows/firmware.yml
vendored
@ -1,13 +1,9 @@
|
|||||||
name: 'Building Firmware 🔥'
|
name: 'Building Firmware 🔥'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
create:
|
push:
|
||||||
branches:
|
|
||||||
- "!**"
|
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*.*.*'
|
||||||
|
|
||||||
push:
|
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
paths:
|
paths:
|
||||||
@ -55,7 +51,7 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||||
steps:
|
steps:
|
||||||
- name: '⏳ Checkout repository'
|
- name: '⏳ Checkout repository'
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -88,7 +84,7 @@ jobs:
|
|||||||
development:
|
development:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') == false
|
||||||
steps:
|
steps:
|
||||||
- name: '⏳ Checkout repository'
|
- name: '⏳ Checkout repository'
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user