-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (59 loc) · 1.7 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# 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