File tree Expand file tree Collapse file tree 1 file changed +67
-0
lines changed
Expand file tree Collapse file tree 1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release starter and migration packages on tag push
2+
3+ on :
4+ push :
5+ tags : [ '*' ]
6+
7+ jobs :
8+ zip-and-release-packages :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout
12+ uses : actions/checkout@v2
13+
14+ - name : Set release version
15+ run : echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
16+
17+ - name : Prepare release folder
18+ run : |
19+ mkdir packages
20+
21+ - name : Zip starter
22+ uses : montudor/action-zip@v1
23+ with :
24+ args : >
25+ zip -r packages/starter.zip . \
26+ \
27+ -x "*.git/*" \
28+ -x ".github/*" \
29+ -x "spotless/*" \
30+ -x "docs/*" \
31+ \
32+ -x "CODEOWNERS" \
33+ -x "LICENSE" \
34+ -x "README.md" \
35+ \
36+ -x "packages/" \
37+ -x "packages/starter.zip" \
38+ -x "packages/migration.zip"
39+
40+ - name : Zip migration
41+ uses : montudor/action-zip@v1
42+ with :
43+ args : >
44+ zip -r packages/migration.zip . \
45+ \
46+ -x "*.git/*" \
47+ -x ".github/*" \
48+ -x "spotless/*" \
49+ -x "docs/*" \
50+ -x "src/*" \
51+ \
52+ -x "CODEOWNERS" \
53+ -x "LICENSE" \
54+ -x "README.md" \
55+ \
56+ -x "packages/" \
57+ -x "packages/starter.zip" \
58+ -x "packages/migration.zip"
59+
60+ - name : Release tag
61+ uses : marvinpinto/action-automatic-releases@latest
62+ with :
63+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
64+ automatic_release_tag : " ${{ env.RELEASE_VERSION }}-packages"
65+ prerelease : false
66+ title : " ${{ env.RELEASE_VERSION }} starter and migration packages"
67+ files : packages/*
You can’t perform that action at this time.
0 commit comments