File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 18
18
- 'package-lock.json'
19
19
- 'package.json'
20
20
# run only if 'web' files were changed
21
- - name : Add deployable commit to 'production' branch
21
+ - name : Run the Netlify build hook
22
22
env :
23
- GH_TOKEN : ${{ secrets.GH_TOKEN }}
23
+ DEPLOY_URL : ${{ secrets.NETLIFY_BUILD_HOOK_URL }}
24
24
DEPLOY_TRIGGER : ${{ github.event_name }}
25
25
if : steps.filter.outputs.web == 'true'
26
26
run : |
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
deploy_branch () {
3
- git config --global user.email
" [email protected] "
4
- git config --global user.name " 30secondsofcode"
5
- git checkout -b $1
6
- git reset --hard origin/master
7
- git commit -m " [$( date +%Y.%m.%d_%H:%M) ] Deployment/${DEPLOY_TRIGGER} " --allow-empty
8
- git push --force --quiet " https://${GH_TOKEN} @github.com/Chalarangelo/30-seconds-of-code.git" $1 > /dev/null 2>&1
3
+ curl -X POST -d {} " ${DEPLOY_URL} ?trigger_title='[$( date +%Y.%m.%d_%H:%M) ] Deployment/${DEPLOY_TRIGGER} '&trigger_branch=${1} " > /dev/null 2>&1
9
4
}
10
5
11
6
deploy_production () {
You can’t perform that action at this time.
0 commit comments