generated from zahmo/zajsf
-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (90 loc) · 3 KB
/
createdist.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#workflow creates a dist branch for each library, based on its package version
#should create the following 2 dist branches per lib project
#for example the material library project with package version x.x.x will create branches:
#dist_material
#dist_material_vx.x.x
name: CreateDist
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup Node
uses: actions/setup-node@v3
- run: npm ci
- run: npm run build:libs
- name: version core
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/core/package.json'
- name: dist core versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_core_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/core
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: dist core
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_core
FOLDER: ./dist/@zajsf/core
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: version bootstrap3
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/bootstrap3/package.json'
- name: dist bootstrap3 versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap3_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/bootstrap3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: dist bootstrap3
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap3
FOLDER: ./dist/@zajsf/bootstrap3
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: version bootstrap4
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/bootstrap4/package.json'
- name: dist_bootstrap4 versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap4_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/bootstrap4
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: dist_bootstrap4
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_bootstrap4
FOLDER: ./dist/@zajsf/bootstrap4
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: version material
uses: nyaa8/package-version@v1
with:
path: './dist/@zajsf/material/package.json'
- name: dist material versioned
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_material_v${{ env.PACKAGE_VERSION }}
FOLDER: ./dist/@zajsf/material
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: dist material
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: dist_material
FOLDER: ./dist/@zajsf/material
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}