File tree Expand file tree Collapse file tree 2 files changed +24
-14
lines changed Expand file tree Collapse file tree 2 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 1919 shift
2020done
2121
22- # TODO(anyone): remove variable logic when tue-env is updated to new variable names
23- TUE_ENV_WS_DIR=$( docker exec tue-env bash -c ' source ~/.bashrc; [[ -v TUE_ENV_WS_DIR || ! -v TUE_WS_DIR ]] || TUE_ENV_WS_DIR=${TUE_WS_DIR}; echo "${TUE_ENV_WS_DIR}"' | tr -d ' \r' )
22+ TUE_ENV_WS_DIR=$( docker exec tue-env bash -c ' source ~/.bashrc; echo "${TUE_ENV_WS_DIR}"' | tr -d ' \r' )
2423
2524echo -e " \e[35m\e[1mdocker cp tue-env:${TUE_ENV_WS_DIR} /docs .\e[0m"
2625docker cp tue-env:" ${TUE_ENV_WS_DIR} " /docs .
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ defaults:
1212 shell : bash
1313
1414jobs :
15- deployment :
16- name : deployment
15+ build :
16+ name : Build
1717 runs-on : ubuntu-latest
1818 steps :
1919 - uses : actions/checkout@v5
@@ -48,15 +48,26 @@ jobs:
4848 - name : Script
4949 run : .ci/script.bash
5050 - name : Before Deploy
51- if : ${{ (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/master' }}
5251 run : .ci/pre_deploy.bash
53- - name : Deploy
54- if : ${{ (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/master' }}
55- uses : peaceiris/ actions-gh- pages@v4
52+ - name : Upload static files as artifact
53+ id : deployment
54+ uses : actions/upload- pages-artifact @v4
5655 with :
57- github_token : ${{ secrets.GITHUB_TOKEN }}
58- publish_dir : .
59- destination_dir : .
60- exclude_assets : ' .github,.ci'
61- enable_jekyll : true
62- force_orphan : true
56+ path : docs/
57+
58+ deploy :
59+ name : Deployment
60+ needs : build
61+ runs-on : ubuntu-latest
62+ environment :
63+ name : github-pages
64+ url : ${{ steps.deployment.outputs.page_url }}
65+ permissions :
66+ actions : read # To read the artifact from the previous job
67+ id-token : write
68+ pages : write
69+ if : ${{ (github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/master' }}
70+ steps :
71+ - name : Deploy to GitHub Pages
72+ id : deployment
73+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments