add favicon and apple touch icon (#7) #21
This file contains 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
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_css: | |
runs-on: ubuntu-latest | |
env: | |
source: . | |
destination: assets/logos/ | |
steps: | |
- name: Checkout source Git branch | |
uses: actions/checkout@v2 | |
- name: Upload to cdn-staging.w3.org bucket | |
if: success() | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: 'us-east-1' | |
run: | |
aws s3 sync --no-progress --exclude '.git/*' --exclude '.github/*' ${{ env.source }} s3://cdn-staging.w3.org/${{ env.destination }} | |
- name: Purge cache for www-staging.w3.org | |
uses: nathanvaughn/actions-cloudflare-purge@master | |
if: success() | |
with: | |
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }} | |
cf_auth: ${{ secrets.CLOUDFLARE_CACHEPURGE_TOKEN }} | |
prefixes: www-staging.w3.org/${{ env.destination }} |