blob: 1bb17a01d091a6fb1a7f6ea31345af8da684f8a2 (
plain) (
tree)
|
|
name: CI - copy dist/ to master
on:
push:
branches:
- current-release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout to release branch
uses: actions/checkout@v2
with:
ref: current-release
- name: Copy dist/ folder
run: |
cp -r dist /tmp/
cp -r dist/.well-known tmp/dist/
- name: Checkout to master
uses: actions/checkout@v2
with:
ref: master
- name: Replace files
run: |
rm -r .[!.]*
mv /tmp/dist/.[!.]* .
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub CI Action"
git add -A
git commit -m "Mirror change from release"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
|