Move to stable branch for debian build #24
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: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Prepare build environment | |
run: ./scripts/prepare_runner.sh | |
- name: Build | |
run: ./scripts/docker_brun.sh UFI1962 | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: Dongle${{ github.run_id }}${{ github.run_attempt }} | |
release_name: Release ${{ github.sha }} | |
body: | | |
Contents of this release: | |
* boot.img - Boot Image | |
* rootfs.img - Sparse Image | |
* edl.zip - Zip file to deploy through EDL | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset boot.img | |
id: upload-release-asset-debian-boot | |
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: ./boot.img | |
asset_name: boot.img | |
asset_content_type: application/img | |
- name: Upload Release Asset rootfs.img | |
id: upload-release-asset-debian-rootfs | |
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: ./rootfs.img | |
asset_name: rootfs.img | |
asset_content_type: application/img | |
# BIGGER THAN 2G if not zipped! | |
- name: Upload Release Asset edl.zip | |
id: upload-release-asset-debian-edl | |
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: ./edl.zip | |
asset_name: edl.zip | |
asset_content_type: application/zip | |