File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 75
75
env :
76
76
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # To pull server without rate limit issues in CI
77
77
78
- publish-netlify :
79
- name : Deploy ${{ (github.ref == 'refs/heads/main' && 'to Netlify production') || 'Netlify preview' }}
80
- if : github.event_name == 'push'
81
- runs-on : ubuntu-latest
82
- needs : build
83
- steps :
84
- - uses : actions/checkout@v4
85
-
86
- - uses : actions/download-artifact@v4
87
- with :
88
- name : dist
89
- path : dist
90
-
91
- - name : Deploy to Netlify
92
- uses : nwtgck/actions-netlify@v3
93
- with :
94
- publish-dir : ' ./dist'
95
- production-branch : main # Main goes to prod, others do deploy previews
96
- github-token : ${{ secrets.GITHUB_TOKEN }}
97
- deploy-message : GHA Deploy - ${{ github.event.head_commit.message }}
98
- enable-commit-status : true
99
- enable-pull-request-comment : false
100
- enable-commit-comment : false
101
- netlify-config-path : ./netlify.toml
102
- alias : ${{ github.sha }}
103
- env :
104
- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
105
- NETLIFY_SITE_ID : ${{ secrets.NETLIFY_SITE_ID }}
106
- timeout-minutes : 1
107
-
108
78
publish-docker :
109
79
name : Build & publish container to Docker Hub
110
80
if : github.event_name == 'push' && !startsWith(github.ref, 'refs/heads/dependabot/')
You can’t perform that action at this time.
0 commit comments