File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ tag :
6
+ description : ' New tag to create'
7
+ required : true
8
+ type : string
9
+ jobs :
10
+ Release :
11
+ runs-on : ubuntu-20.04
12
+ steps :
13
+ - name : ' Check out code'
14
+ uses : actions/checkout@v3
15
+ with :
16
+ fetch-depth : 0
17
+ - name : Create Tag
18
+ uses : rickstaa/action-create-tag@v1
19
+ with :
20
+ tag : " ${{ inputs.tag }}"
21
+ message : " "
22
+ - name : Create Release
23
+ uses : fregante/release-with-changelog@v3
24
+ id : create_release
25
+ with :
26
+ token : ${{ secrets.GITHUB_TOKEN }}
27
+ - name : ' Install dependencies'
28
+ run : |
29
+ sudo apt-get install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi
30
+ - name : ' Update Submodules'
31
+ run : |
32
+ git submodule sync --recursive
33
+ git submodule update --init --recursive
34
+ - name : ' Configure'
35
+ run : |
36
+ mkdir -p build
37
+ cmake -B build
38
+ - name : ' Build'
39
+ run : |
40
+ make -C build
41
+ - name : Upload uf2
42
+ uses : actions/upload-release-asset@v1
43
+ env :
44
+ GITHUB_TOKEN : ${{ github.token }}
45
+ with :
46
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
47
+ asset_name : pico-sexa-uart-bridge-${{ inputs.tag }}.uf2
48
+ asset_path : build/uart_bridge.uf2
49
+ asset_content_type : application/octet-stream
You can’t perform that action at this time.
0 commit comments