This repository was archived by the owner on Apr 27, 2025. It is now read-only.
Update README.md #25
This file contains hidden or 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 | |
| jobs: | |
| prepare_release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Get time | |
| id: time | |
| uses: nanzm/[email protected] | |
| 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: [hinlink-h66k, hinlink-h68k] | |
| DISTRO: [armbian] | |
| FLAVOR: [ubuntu, cli] | |
| BRANCH: [legacy] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Upload Armbian image | |
| uses: amazingfate/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 }} |