Skip to content

Universal Flipper Binary #27

Universal Flipper Binary

Universal Flipper Binary #27

Workflow file for this run

name: Universal Flipper Binary
on: workflow_dispatch
jobs:
build:
name: Generates a universal Flipper Binary.
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
chmod +x generate.sh && ./generate.sh
- name: version
run: echo "flipper_version=$(grep '^VERSION_NAME=' flipper/gradle.properties | cut -d'=' -f2-)" >> $GITHUB_ENV
id: version
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ env.flipper_version }}
tag_name: ${{ env.flipper_version }}
body: |
Universal binary for Flipper version: ${{ env.flipper_version }}
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: flipper/dist/Flipper-mac.dmg
asset_name: Flipper-mac-universal.dmg
asset_content_type: application/octet-stream