blob: cee1ed906a717d9ee2961f6abeb6834604af91b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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/
- 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 --global user.email "action@github.com"
git config --global 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 }}
|