Skip to content

Commit c8d1d54

Browse files
committed
fix the existing job to push to CF
1 parent 2007d62 commit c8d1d54

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

.github/workflows/main.yml

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,42 @@ on:
1313
jobs:
1414
build_and_deploy_internal_existing:
1515
name: Build and Deploy Internal Existing
16-
uses: ./.github/workflows/deploy.yml
17-
permissions:
18-
id-token: write
19-
contents: read
20-
with:
21-
environment: internal
22-
target: internal-existing
23-
secrets:
24-
AWS_OIDC_ROLE: ${{ secrets.AWS_OIDC_ROLE_INTERNAL }}
25-
HUGO_LLM_API: ${{ secrets.HUGO_LLM_API }}
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
49+
env:
50+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
51+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2652

2753
build_and_deploy_internal:
2854
name: Build and Deploy Internal

0 commit comments

Comments
 (0)