|
13 | 13 | jobs: |
14 | 14 | build_and_deploy_internal_existing: |
15 | 15 | 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 }} |
26 | 52 |
|
27 | 53 | build_and_deploy_internal: |
28 | 54 | name: Build and Deploy Internal |
|
0 commit comments