@@ -2,22 +2,16 @@ name: Devops GapAnalysis
2
2
3
3
on :
4
4
push :
5
- branches : [ "stage" ]
5
+ branches : ["stage"]
6
6
tags :
7
- - ' v*'
8
-
7
+ - " v*"
9
8
10
9
permissions :
11
10
contents : read
12
11
13
12
jobs :
13
+ # ------- START FRONT PROCCESS -------- #
14
14
15
-
16
-
17
-
18
- # ------- START FRONT PROCCESS -------- #
19
-
20
-
21
15
TestFront :
22
16
runs-on : ubuntu-latest
23
17
steps :
@@ -31,11 +25,10 @@ jobs:
31
25
ls
32
26
npm install
33
27
npm test
34
-
35
28
36
- # ------- END FRONT PROCCESS -------- #
29
+ # ------- END FRONT PROCCESS -------- #
37
30
38
- # ------- START MERGE PROCCESS -------- #
31
+ # ------- START MERGE PROCCESS -------- #
39
32
40
33
MergeMainFront :
41
34
needs : [TestFront]
@@ -53,76 +46,75 @@ jobs:
53
46
target_branch : main
54
47
github_token : ${{ github.token }}
55
48
56
- # ------- END MERGE PROCCESS -------- #
49
+ # ------- END MERGE PROCCESS -------- #
57
50
58
- # ------- START RELEASE PROCCESS -------- #
51
+ # ------- START RELEASE PROCCESS -------- #
59
52
60
53
PostRelease :
61
54
needs : MergeMainFront
62
55
name : Create Release
63
56
runs-on : ubuntu-latest
64
57
permissions : write-all
65
58
steps :
66
- - uses : actions/checkout@v3
67
- with :
68
- fetch-depth : ' 0 '
69
- - uses : actions/setup-node@v3
70
- with :
59
+ - uses : actions/checkout@v3
60
+ with :
61
+ fetch-depth : " 0 "
62
+ - uses : actions/setup-node@v3
63
+ with :
71
64
node-version : 18
72
- # Front Zip
73
- - name : Install packages
74
- run : |
65
+ # Front Zip
66
+ - name : Install packages
67
+ run : |
75
68
cd ./src
76
69
ls
77
70
npm install
78
71
npm run build
79
72
80
- - name : Zip artifact front for deployment
81
- run : |
73
+ - name : Zip artifact front for deployment
74
+ run : |
82
75
cd ./src/build
83
76
ls
84
77
zip releaseFront.zip ./* -r
85
-
86
- # Upload Artifacts
87
- - name : Upload Front artifact for deployment job
88
- uses : actions/upload-artifact@v3
89
- with :
90
- name : Frontend
91
- path : releaseFront.zip
92
- # Generate Tagname
93
- - name : Generate Tagname for release
94
- id : taggerDryRun
95
- uses : anothrNick/github-tag-action@1.61.0
96
- env :
97
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
98
- WITH_V : true
99
- DRY_RUN : true
100
- DEFAULT_BUMP : patch
101
- RELEASE_BRANCHES : stage,main
102
- BRANCH_HISTORY : last
103
- # Create release
104
- - name : Create Release
105
- id : create_release
106
- uses : actions/create-release@v1
107
- env :
108
- GITHUB_TOKEN : ${{ github.token }}
109
- with :
110
- tag_name : ${{ steps.taggerDryRun.outputs.new_tag }}
111
- release_name : Release ${{ steps.taggerDryRun.outputs.new_tag }}
112
- # body_path: ./body.md
113
- body : ${{ github.event.head_commit.message }}
114
- draft : false
115
- prerelease : false
116
- # Upload Assets to release
117
- - name : Upload Release Asset Front
118
- id : upload-front-release-asset
119
- uses : actions/upload-release-asset@v1
120
- env :
121
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
122
- with :
123
- upload_url : ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
124
- asset_path : ./src/build/releaseFront.zip
125
- asset_name : releaseFront.zip
126
- asset_content_type : application/zip
127
78
128
- # ------- END RELEASE PROCCESS -------- #
79
+ # Upload Artifacts
80
+ - name : Upload Front artifact for deployment job
81
+ uses : actions/upload-artifact@v4
82
+ with :
83
+ name : Frontend
84
+ path : releaseFront.zip
85
+ # Generate Tagname
86
+ - name : Generate Tagname for release
87
+ id : taggerDryRun
88
+ uses : anothrNick/github-tag-action@1.61.0
89
+ env :
90
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
91
+ WITH_V : true
92
+ DRY_RUN : true
93
+ DEFAULT_BUMP : patch
94
+ RELEASE_BRANCHES : stage,main
95
+ BRANCH_HISTORY : last
96
+ # Create release
97
+ - name : Create Release
98
+ id : create_release
99
+ uses : actions/create-release@v1
100
+ env :
101
+ GITHUB_TOKEN : ${{ github.token }}
102
+ with :
103
+ tag_name : ${{ steps.taggerDryRun.outputs.new_tag }}
104
+ release_name : Release ${{ steps.taggerDryRun.outputs.new_tag }}
105
+ # body_path: ./body.md
106
+ body : ${{ github.event.head_commit.message }}
107
+ draft : false
108
+ prerelease : false
109
+ # Upload Assets to release
110
+ - name : Upload Release Asset Front
111
+ id : upload-front-release-asset
112
+ uses : actions/upload-release-asset@v1
113
+ env :
114
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
115
+ with :
116
+ upload_url : ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
117
+ asset_path : ./src/build/releaseFront.zip
118
+ asset_name : releaseFront.zip
119
+ asset_content_type : application/zip
120
+ # ------- END RELEASE PROCCESS -------- #
0 commit comments