fix spaces in action #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 for standard firmware | |
uses: flipperdevices/[email protected] | |
id: build-standard | |
with: | |
sdk-channel: release | |
- name: Build with ufbt for Flipper Unleashed | |
uses: flipperdevices/[email protected] | |
id: build-unleashed | |
with: | |
sdk-index-url: https://up.unleashedflip.com/directory.json | |
sdk-channel: release | |
- name: Lint sources | |
uses: flipperdevices/[email protected] | |
with: | |
skip-setup: true | |
task: lint | |
- name: Create a new tag | |
run: | | |
TAG_NAME=${{ github.event.repository.name }}-$(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 Assets | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
${{ steps.build-standard.outputs.fap-artifacts }} | |
${{ steps.build-unleashed.outputs.fap-artifacts }} | |
tag_name: ${{ env.TAG_NAME }} | |
draft: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} |