File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 1- name : Deploy the scratchattach website
1+ name : Deploy website
22
33on :
44 push :
1111jobs :
1212 deploy :
1313 runs-on : ubuntu-latest
14+
1415 steps :
15- - name : Checkout repository
16- uses : actions/checkout@v4
16+ - uses : actions/checkout@v4
1717 with :
1818 fetch-depth : 0
1919
2424
2525 - name : Deploy website directory to website branch
2626 run : |
27- git worktree add /tmp/website --orphan website
28- cd /tmp/website
29- rm -rf *
30- cp -r ${{ github.workspace }}/website/* .
27+ git switch --orphan website-tmp
28+ git rm -rf .
29+ cp -r website/* .
3130 git add .
32- git commit -m "Deploy website directory to website branch "
33- git push -u origin website --force
31+ git commit -m "Deploy website directory"
32+ git push origin website --force
You can’t perform that action at this time.
0 commit comments