File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -19,21 +19,21 @@ jobs:
1919 runs-on : ubuntu-latest
2020 steps :
2121 - name : Checkout
22- uses : actions/checkout@v4
22+ uses : actions/checkout@v5
2323
2424 - name : Use Node.js
25- uses : actions/setup-node@v4
25+ uses : actions/setup-node@v6
2626 with :
2727 node-version : 22
2828
2929 - name : Persist npm cache
30- uses : actions/cache@v3
30+ uses : actions/cache@v4
3131 with :
3232 path : ~/.npm
3333 key : ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
3434
3535 - name : Persist Eleventy .cache
36- uses : actions/cache@v3
36+ uses : actions/cache@v4
3737 with :
3838 path : ./.cache
3939 key : ${{ runner.os }}-eleventy-fetch-cache
4949 with :
5050 path : _site
5151
52+ # deploy to inveniosoftware.org
5253 deploy :
5354 needs : build
5455 runs-on : ubuntu-latest
5960 - name : Deploy to GitHub Pages
6061 id : deployment
6162 uses : actions/deploy-pages@v4
63+
64+ # deploy to invenio-software.org
65+ deploy-to-dash :
66+ needs : build
67+ runs-on : ubuntu-latest
68+ steps :
69+ - name : Checkout target repo
70+ run : |
71+ git clone --depth=1 https://github.com/inveniosoftware/invenio-software.org target
72+ - name : Copy built site
73+ run : |
74+ rm -rf target/*
75+ cp -r build/* target/
76+ - name : Commit and push to target repo
77+ run : |
78+ cd target
79+ git config user.name "github-actions[bot]"
80+ git config user.email "github-actions[bot]@users.noreply.github.com"
81+ git add .
82+ git commit -m "Deploy from inveniosoftware.org site"
83+ git push https://x-access-token:${{ secrets.LEKTOR_DEPLOY_TOKEN_INVENIOBOT }}@github.com/inveniosoftware/invenio-software.org gh-pages
You can’t perform that action at this time.
0 commit comments