initial commit #1
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# GitHub recommends pinning actions to a commit SHA. | |
# To get a newer version, you will need to update the SHA. | |
# You can also reference a tag or branch, but the action may change without warning. | |
name: Release | |
on: | |
push: | |
branches: main | |
tags: v*.*.* | |
pull_request: | |
types: | |
- synchronize | |
- opened | |
- reopened | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.sha }} | |
cancel-in-progress: true | |
jobs: | |
create_release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
discussions: write | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- | |
name: Set up QEMU for multi-architecture builds | |
uses: docker/setup-qemu-action@v2 | |
- | |
name: Extract project name | |
id: extract | |
run: | | |
echo proj="$(basename ${{github.workspace}})" >> $GITHUB_OUTPUT | |
- | |
name: Build Project | |
uses: devcontainers/[email protected] | |
with: | |
subFolder: "${{github.workspace}}" | |
configFile: .devcontainer/armhf-container/devcontainer.json | |
push: never | |
runCmd: | | |
"/workspaces/${{steps.extract.outputs.proj}}/build.sh" | |
- | |
name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
fail_on_unmatched_files: true | |
generate_release_notes: true | |
files: | | |
build/*.deb |