Skip to content

Commit 8d15719

Browse files
Merge pull request #47 from TrustedComputingGroup/cddl-ci
add a CI action to release the CDDL files
2 parents dfa323d + 894cb93 commit 8d15719

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release-cddl.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Upload CDDL assets"
2+
3+
on:
4+
push:
5+
tags:
6+
- "cddl-*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout repo
13+
uses: actions/checkout@v4
14+
with:
15+
submodules: recursive
16+
- name: install tools
17+
run: gem install --user-install cbor-diag cddl
18+
- name: set up PATH
19+
run: echo "$(gem env gempath | cut -d':' -f1)/bin" >> $GITHUB_PATH
20+
- name: assemble and test
21+
run: make check
22+
- name: "Create Release"
23+
uses: softprops/action-gh-release@v2
24+
if: startsWith(github.ref, 'refs/tags/')
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
files: |
28+
./*-autogen.cddl

0 commit comments

Comments
 (0)