File tree Expand file tree Collapse file tree 2 files changed +0
-94
lines changed Expand file tree Collapse file tree 2 files changed +0
-94
lines changed Original file line number Diff line number Diff line change 1111 workflow_dispatch :
1212
1313jobs :
14- build_and_deploy_internal_existing :
15- name : Build and Deploy Internal Existing
16- # The type of runner that the job will run on
17- runs-on : ubuntu-latest
18- # Steps represent a sequence of tasks that will be executed as part of the job
19- steps :
20- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21- - uses : actions/checkout@v4
22- with :
23- submodules : true # Fetch Hugo Themes
24- fetch-depth : 0
25-
26- # Sets Up Hugo
27- - name : Setup Hugo
28- uses : peaceiris/actions-hugo@v3
29- with :
30- hugo-version : " 0.130.0"
31- extended : true
32-
33- # Post-CSS install and Node.js
34- - name : Install Post-CSS
35- run : npm install postcss-cli
36-
37- # Builds arm-software-developer repo
38- - name : Build
39- run : |
40- hugo --minify
41- cp learn-image-sitemap.xml public/learn-image-sitemap.xml
42- bin/pagefind --site "public"
43- env :
44- HUGO_LLM_API : ${{ secrets.HUGO_LLM_API }}
45-
46- # Deploys website to AWS S3
47- - name : Deploy to S3
48- run : hugo deploy --force --maxDeletes -1 --invalidateCDN --target internal-existing
49- env :
50- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
51- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
52-
5314 build_and_deploy_internal :
5415 name : Build and Deploy Internal
5516 uses : ./.github/workflows/deploy.yml
Original file line number Diff line number Diff line change 1111 workflow_dispatch :
1212
1313jobs :
14- build_and_deploy_existing :
15- # The type of runner that the job will run on
16- runs-on : ubuntu-latest
17-
18- # Steps represent a sequence of tasks that will be executed as part of the job
19- steps :
20- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21- - uses : actions/checkout@v4
22- with :
23- submodules : true # Fetch Hugo Themes
24- fetch-depth : 0
25-
26- # Sets Up Hugo
27- - name : Setup Hugo
28- uses : peaceiris/actions-hugo@v3
29- with :
30- hugo-version : " 0.130.0"
31- extended : true
32-
33- # Post-CSS install
34- - name : Install Post-CSS
35- run : npm install postcss-cli
36-
37- # Builds arm-learning-paths repo
38- - name : Build
39- run : |
40- hugo --minify
41- cp learn-image-sitemap.xml public/learn-image-sitemap.xml
42- bin/pagefind --site "public"
43- env :
44- HUGO_LLM_API : ${{ secrets.HUGO_LLM_API }}
45-
46- # Copy SSH Key
47- - name : copy key
48- run : |
49- echo $SSH_KEY | xargs -n 1 > tmpkey
50- base64 -d < tmpkey > key
51- chmod 400 key
52- shell : bash
53- env :
54- SSH_KEY : ${{secrets.SSH_KEY}}
55-
56- # SCP Site contents to netstorage
57- - name : copy site content
58- run : |
59- cd public
60- zip -r public.zip .
61- cd ..
62- scp -i key -o StrictHostKeyChecking=accept-new -oHostKeyAlgorithms=+ssh-dss -r public/public.zip $USR@$HOST:/$ID/
63- shell : bash
64- env :
65- USR : ${{secrets.SSH_USERNAME}}
66- HOST : ${{secrets.SSH_HOST}}
67- ID : ${{secrets.ID}}
68-
6914 build_and_deploy_production :
7015 name : Build and Deploy Production
7116 uses : ./.github/workflows/deploy.yml
You can’t perform that action at this time.
0 commit comments