File tree 1 file changed +27
-13
lines changed
1 file changed +27
-13
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,6 @@ concurrency:
27
27
cancel-in-progress : false
28
28
29
29
jobs :
30
- sonarcloud :
31
- name : SonarCloud
32
- runs-on : ubuntu-latest
33
- steps :
34
- - uses : actions/checkout@v3
35
- with :
36
- fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
37
- - name : SonarCloud Scan
38
- uses : SonarSource/sonarcloud-github-action@master
39
- env :
40
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
41
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
42
30
# Build job
43
31
build :
44
32
runs-on : ubuntu-latest
@@ -70,13 +58,39 @@ jobs:
70
58
with :
71
59
path : " docs/_site/"
72
60
61
+ - name : Archive production artifacts
62
+ uses : actions/upload-artifact@v4
63
+ with :
64
+ name : site
65
+ path : " docs/_site/"
66
+
67
+ # Deployment job
68
+ sonarcloud :
69
+ name : SonarCloud
70
+ runs-on : ubuntu-latest
71
+ needs : build
72
+ steps :
73
+ - name : Checkout
74
+ uses : actions/checkout@v4
75
+ - name : Download site artifacts
76
+ uses : actions/download-artifact@v4
77
+ with :
78
+ name : site
79
+ path : _site
80
+ - name : Display structure of downloaded files
81
+ run : ls -R
82
+ - name : SonarCloud Scan
83
+ uses : SonarSource/sonarcloud-github-action@master
84
+ env :
85
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
86
+ SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
73
87
# Deployment job
74
88
deploy :
75
89
environment :
76
90
name : github-pages
77
91
url : ${{ steps.deployment.outputs.page_url }}
78
92
runs-on : ubuntu-latest
79
- needs : build
93
+ needs : sonarcloud
80
94
steps :
81
95
- name : Deploy to GitHub Pages
82
96
id : deployment
You can’t perform that action at this time.
0 commit comments