This repository has been archived by the owner on May 11, 2024. It is now read-only.
Update build.yml #13
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: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
prepare_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Get time | |
id: time | |
uses: nanzm/get-time-action@v1.1 | |
with: | |
format: 'YYYYMMDD-HHmm' | |
- name: Create empty release | |
id: release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ steps.time.outputs.time }} | |
body_path: README.md | |
token: ${{ secrets.GITHUB_TOKEN }} | |
target_commitish: master | |
draft: false | |
outputs: | |
release_id: ${{ steps.release.outputs.id }} | |
build: | |
runs-on: ubuntu-latest | |
needs: prepare_release | |
strategy: | |
matrix: | |
BOARD: [orangepi5] | |
DISTRO: [armbian] | |
FLAVOR: [ubuntu] | |
BRANCH: [edge] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Upload Armbian image | |
uses: efectn-forks/armbian-compile-action@main | |
if: matrix.DISTRO == 'armbian' | |
with: | |
branch: ${{ matrix.BRANCH }} | |
board: ${{ matrix.BOARD }} | |
flavor: ${{ matrix.FLAVOR }} | |
release-id: ${{ needs.prepare_release.outputs.release_id }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} |