|
@@ -5,8 +5,8 @@ on:
|
|
|
branches:
|
|
branches:
|
|
|
- 'master'
|
|
- 'master'
|
|
|
- 'dev'
|
|
- 'dev'
|
|
|
- #tags:
|
|
|
|
|
- # - 'v*.*'
|
|
|
|
|
|
|
+ tags:
|
|
|
|
|
+ - 'v*.*'
|
|
|
|
|
|
|
|
permissions:
|
|
permissions:
|
|
|
contents: write
|
|
contents: write
|
|
@@ -31,7 +31,7 @@ jobs:
|
|
|
id: build-app
|
|
id: build-app
|
|
|
uses: flipperdevices/flipperzero-ufbt-action@v0.1.4
|
|
uses: flipperdevices/flipperzero-ufbt-action@v0.1.4
|
|
|
with:
|
|
with:
|
|
|
- sdk-branch: 'dev'
|
|
|
|
|
|
|
+ sdk-branch: ${{ github.ref == 'refs/heads/master' && 'release' || 'dev' }}
|
|
|
|
|
|
|
|
- name: Upload app artifacts
|
|
- name: Upload app artifacts
|
|
|
uses: actions/upload-artifact@v3
|
|
uses: actions/upload-artifact@v3
|
|
@@ -39,7 +39,6 @@ jobs:
|
|
|
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
|
|
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
|
|
|
path: ${{ steps.build-app.outputs.fap-artifacts }}
|
|
path: ${{ steps.build-app.outputs.fap-artifacts }}
|
|
|
|
|
|
|
|
- # Release step
|
|
|
|
|
- name: Create GitHub Release and Upload FAP
|
|
- name: Create GitHub Release and Upload FAP
|
|
|
uses: softprops/action-gh-release@v1
|
|
uses: softprops/action-gh-release@v1
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
if: startsWith(github.ref, 'refs/tags/')
|