Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SegerEnd authored Jan 5, 2025
1 parent fa19abc commit 833a671
Showing 1 changed file with 50 additions and 6 deletions.
56 changes: 50 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "FAP: Build for multiple SDK sources"
name: "FAP: Build & Publish to releases"
# This will build your app for dev and release channels on GitHub.
# It will also build your app every day to make sure it's up to date with the latest SDK changes.
# See https://github.com/marketplace/actions/build-flipper-application-package-fap for more information
Expand All @@ -19,23 +19,67 @@ jobs:
strategy:
matrix:
include:
- name: dev channel
sdk-channel: dev
# - name: dev channel
# sdk-channel: dev
- name: release channel
sdk-channel: release
# You can add unofficial channels here. See ufbt action docs for more info.
name: 'ufbt: Build for ${{ matrix.name }}'
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/[email protected]

- name: Build with ufbt
uses: flipperdevices/[email protected].1
uses: flipperdevices/[email protected].3
id: build-app
with:
sdk-channel: ${{ matrix.sdk-channel }}

- name: Upload app artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.5.0
with:
# See ufbt action docs for other output variables
name: ${{ github.event.repository.name }}-${{ steps.build-app.outputs.suffix }}
path: ${{ steps.build-app.outputs.fap-artifacts }}
release:
needs: ufbt-build
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3

# - name: Download dev artifacts
# uses: actions/[email protected]
# with:
# name: ${{ github.event.repository.name }}-dev
# path: ./artifacts/dev

- name: Download release artifacts
uses: actions/[email protected]
with:
name: ${{ github.event.repository.name }}-release
path: ./artifacts/release

- name: Extract .zip release artifacts
run: |
mkdir -p ./extracted/release
unzip './artifacts/release/*.zip' -d ./extracted/release
- name: Create GitHub Release
uses: ncipollo/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
releaseName: Release ${{ github.ref_name }}
body: |
### Release Information
This is an automated downloadable release of the application. Made by the GitHub Actions.
This release includes a .FAP files for the Flipper Zero.
### Files
The following files are attached to this release for download:
- Release version, From the official Flipper Zero Release update channel.
artifacts: |
./extracted/release/*.fap
draft: true
prerelease: false

0 comments on commit 833a671

Please sign in to comment.