Skip to content

Remove monorepo and ARIA Practices from aria-common deploy (#112) #49

Remove monorepo and ARIA Practices from aria-common deploy (#112)

Remove monorepo and ARIA Practices from aria-common deploy (#112) #49

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
paths:
- .github/workflows/deploy.yml
- README.md
- acknowledgements.html
- biblio.js
- terms.html
- acknowledgements/**
- css/**
- img/**
- script/**
- utility/**
jobs:
deploy:
runs-on: ubuntu-latest
if: github.repository == 'w3c/aria-common'
strategy:
fail-fast: false
matrix:
include:
- repo: w3c/css-aam
branch: main
- repo: w3c/math-aria
branch: main
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: ${{ matrix.repo }}
path: ${{ matrix.repo }}
ref: ${{ matrix.branch }}
token: ${{ secrets.ARIA_COMMON }}
- name: Cleanup old files
run: |
rm -rf ${{ matrix.repo }}/common/
- name: Copy files
run: |
mkdir ${{ matrix.repo }}/common
cp -R README.md ${{ matrix.repo }}/common
cp -R acknowledgements.html ${{ matrix.repo }}/common
cp -R biblio.js ${{ matrix.repo }}/common
cp -R terms.html ${{ matrix.repo }}/common
cp -R acknowledgements ${{ matrix.repo }}/common
cp -R css ${{ matrix.repo }}/common
cp -R img ${{ matrix.repo }}/common
cp -R script ${{ matrix.repo }}/common
cp -R utility ${{ matrix.repo }}/common
- name: Commit back
run: |
cd ${{ matrix.repo }}
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add --all
git commit -m "chore: sync from w3c/aria-common" -m "Generated by https://github.com/w3c/aria-common/commit/${{ github.sha }}" || true
git push