Skip to content

import xml doc of development (6ac4f4799543aad5b50cc0f81dee451056da5a28) #649

import xml doc of development (6ac4f4799543aad5b50cc0f81dee451056da5a28)

import xml doc of development (6ac4f4799543aad5b50cc0f81dee451056da5a28) #649

Workflow file for this run

name: CI
on: [push, pull_request]
env:
FORCE_COLOR: 1
EARTHLY_STRICT: "true"
DEPLOY: "${{ github.repository_owner == 'HaxeFoundation' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "true"
- uses: earthly/actions-setup@v1
with:
version: "0.7.8"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: build html
run: earthly +html
- name: validate html
run: earthly +validate-html
- name: Create .envrc
if: success() && env.DEPLOY == 'true'
run: |
cat > .envrc <<EOT
export AWS_DEFAULT_REGION='${{ vars.AWS_DEFAULT_REGION }}'
export AWS_ACCESS_KEY_ID='${{ vars.AWS_ACCESS_KEY_ID }}'
export AWS_SECRET_ACCESS_KEY='$AWS_SECRET_ACCESS_KEY'
export S3_BUCKET='${{ vars.S3_BUCKET }}'
export CLOUDFRONT_DISTRIBUTION_ID='${{ vars.CLOUDFRONT_DISTRIBUTION_ID }}'
EOT
env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Deploy
if: success() && env.DEPLOY == 'true'
run: earthly +deploy
env:
EARTHLY_SECRET_FILES: envrc=.envrc