24 строки
660 B
YAML
24 строки
660 B
YAML
name: Maintenance Page Deployment
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- maintenance/**/*.*
|
|
|
|
jobs:
|
|
deploy:
|
|
name: Deploy Maintenance page to S3
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Configure AWS Credentials
|
|
uses: aws-actions/configure-aws-credentials@v1
|
|
with:
|
|
aws-access-key-id: AKIASHBU2IYB3B7VQPAF
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
aws-region: us-east-1
|
|
- name: Deploy maintenance page to S3 bucket
|
|
run: aws s3 sync ./maintenance/ s3://foundation-mozilla-org-maintenance --acl public-read --delete
|