File tree 1 file changed +2
-31
lines changed
1 file changed +2
-31
lines changed Original file line number Diff line number Diff line change 30
30
31
31
build-and-push :
32
32
name : Build and push Docker container
33
- if : github.ref == 'refs/heads/v2.1' || github.ref == 'refs/heads/master '
33
+ if : github.ref == 'refs/heads/v2.1''
34
34
runs-on : ubuntu-latest
35
35
permissions :
36
36
packages : write
71
71
deploy-prod :
72
72
name : Deploy to prod
73
73
needs : build-and-push
74
- if : github.ref == 'refs/heads/master '
74
+ if : github.ref == 'refs/heads/v2.1 '
75
75
runs-on : ubuntu-latest
76
76
permissions :
77
77
contents : read
84
84
CLUSTER : prod-fss
85
85
RESOURCE : .nais/prod.yaml
86
86
VAR : image=${{ needs.build-and-push.outputs.image }}
87
-
88
- deploy-gh-pages :
89
- name : Deploy til gh-pages
90
- needs : build-and-push
91
- if : github.ref == 'refs/heads/dev'
92
- runs-on : ubuntu-latest
93
- permissions :
94
- contents : write
95
- steps :
96
- - uses : actions/checkout@v3
97
- - uses : actions/setup-node@v3
98
- with :
99
- node-version : ' 16.13.1'
100
- cache : ' npm'
101
- - name : Install dependencies
102
- run : npm ci
103
- - name : Build
104
- run : npm run build
105
- - name : Bundle
106
- run : |
107
- mv build v2.1
108
- mkdir build
109
- mv v2.1 build
110
- - name : Deploy gh-pages
111
-
112
- with :
113
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
114
- PUBLISH_BRANCH : gh-pages
115
- PUBLISH_DIR : build
You can’t perform that action at this time.
0 commit comments