Skip to content

load to releases

load to releases #5

Workflow file for this run

name: "FAP: Build and lint"
on:
push:
branches:
- master
jobs:
ufbt-build-action:
runs-on: ubuntu-latest
name: 'ufbt: Build for Master branch'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build with ufbt
uses: flipperdevices/[email protected]
id: build-app
with:
# Set to 'release' to build for latest published release version
sdk-channel: dev
# You can remove this step if you don't want to check source code formatting
- name: Lint sources
uses: flipperdevices/[email protected]
with:
# skip SDK setup, we already did it in previous step
skip-setup: true
task: lint
- name: Create a new tag
id: create_tag
run: |
TAG_NAME=flipper-hero-$(date +'%Y%m%d%H%M%S')
git config --global user.name 'tag-bot'
git config --global user.email 'tag-bot@mail'
git tag $TAG_NAME
git push https://github.com/mentoster/Flipper-hero.git $TAG_NAME
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
with:
files: ${{ steps.build-app.outputs.fap-artifacts }}
tag_name: ${{ env.TAG_NAME }}
draft: false # Set to false if you don't want to create a draft release
prerelease: false # Mark the release as a prerelease
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}