-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.24 KB
/
publish-template.yaml
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
name: publish-template
on:
workflow_dispatch:
push:
tags:
- '*.*.*'
jobs:
build:
runs-on: ubuntu-latest
name: Publish template
steps:
- uses: actions/checkout@v2
- name: Prepare template
run: |
echo "Building template folder structure"
mkdir -p ./working/templates/ca-solution/.template.config
cat <<EOT >> ./working/templates/ca-solution/.template.config/template.json
{
"$schema": "http://json.schemastore.org/template",
"author": "Dyego Maas",
"classifications": [ "Clean Architecture", "Solution", "C#9", "MongoDB ],
"identity": "DyegoMaas.CleanArchitecture.Template",
"name": "Solution template applying Clean Architecture",
"shortName": "ca-solution",
"tags": {
"language": "C#",
"type": "project"
}
}
EOT
echo "Copying solution files"
ITEMS_TO_COPY=("src" "tests" "Dockerfile" "docker-compose.tests.yml")
for item in ${ITEMS_TO_COPY[@]}; do
echo "Copiando o item $item"
cp -r "./$item" "./working/templates/ca-solution/$item"
done
ls -Rlha ./working