Fix various content and accessibility issues (#167) #566
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Hugo Build CI | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'master' | |
| - 'staging' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: nelonoel/branch-name@v1 | |
| env: | |
| ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
| - run: echo ${BRANCH_NAME} | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set ENV vars | |
| env: | |
| BUCKET_NAME: ${{ secrets.BUCKET_NAME }} | |
| BUCKET_NAME_STAGING: ${{ secrets.BUCKET_NAME_STAGING }} | |
| DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }} | |
| STAGING_DISTRIBUTION_ID: ${{ secrets.STAGING_DISTRIBUTION_ID }} | |
| MAX_AGE: ${{ secrets.MAX_AGE }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| run: echo $BUCKET_NAME | |
| - name: Login to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ secrets.GHCR_USERNAME }} | |
| password: ${{ secrets.GHCR_PAT }} | |
| - name: Build Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: ./docker/Dockerfile | |
| push: false | |
| tags: ghcr.io/uvarc/rc-learning:${{ github.ref_name }} | |
| target: base | |
| - name: Run HUGO container | |
| run: docker run -e BRANCH=$BRANCH_NAME -e BUCKET_NAME=${{ secrets.BUCKET_NAME }} -e DISTRIBUTION_ID=${{ secrets.DISTRIBUTION_ID }} -e BUCKET_NAME_STAGING=${{ secrets.BUCKET_NAME_STAGING }} -e STAGING_DISTRIBUTION_ID=${{ secrets.STAGING_DISTRIBUTION_ID }} -e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} -e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} -e MAX_AGE=${{ secrets.MAX_AGE }} ghcr.io/uvarc/rc-learning:${{ github.ref_name }} /root/build-site.sh |