File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Std CD
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*"
7+
8+ concurrency :
9+ group : std-cd-${{ github.workflow }}-${{ github.ref_type }}
10+ cancel-in-progress : false
11+
12+ permissions :
13+ contents : write
14+ packages : write
15+
16+ jobs :
17+ package :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - run : sudo snap install jsonschema
21+ - uses : actions/checkout@v4
22+ - run : make lint
23+ - run : make test
24+ - run : make dist
25+
26+ - run : gh config set prompt disabled
27+ env :
28+ GH_TOKEN : ${{ github.token }}
29+
30+ - name : Perform Tag Release
31+ run : |
32+ gh release create ${{ github.ref_name }} --draft=false --title ${{ github.ref_name }} --target "$GITHUB_SHA" --generate-notes
33+ gh release upload --clobber ${{ github.ref_name }} dist/*.zip dist/*.tar.gz
34+ if : github.ref_type == 'tag'
35+ env :
36+ GH_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 1- name : Std
1+ name : Std CI
22
33on :
44 schedule :
Original file line number Diff line number Diff line change 11.DS_Store
22/build
3+ /dist
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ RMRF ?= rm -rf
1010SCHEMAS = $(shell find schemas/ -type f -name '* .json')
1111TESTS = $(shell find test/ -type f -name '* .json')
1212
13+ VERSION = $(shell tr -d '\n\r' < VERSION)
14+
1315all : common test
1416 $(JSONSCHEMA ) fmt schemas meta --verbose
1517 $(JSONSCHEMA ) fmt test --verbose --default-dialect " https://json-schema.org/draft/2020-12/schema"
@@ -38,3 +40,10 @@ include generate/iso/language/include.mk
3840include generate/iso/country/include.mk
3941external : $(EXTERNAL )
4042generate : $(GENERATE )
43+
44+ .PHONY : dist
45+ dist :
46+ $(RMRF ) $@
47+ $(MKDIRP ) $@
48+ $(BSDTAR ) -caf $@ /sourcemeta-std-v$(VERSION ) .zip -s ' |^schemas/||' --exclude ' .DS_Store' schemas/* LICENSE
49+ $(BSDTAR ) -czf $@ /sourcemeta-std-v$(VERSION ) .tar.gz -s ' |^schemas/||' --exclude ' .DS_Store' schemas/* LICENSE
Original file line number Diff line number Diff line change 1+ 0.0.1
You can’t perform that action at this time.
0 commit comments