summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-23 19:02:19 +0200
committerrstular <rok@stular.eu>2020-05-23 19:02:19 +0200
commitb7ba86c93150948f81ddc7fb297ff1bde7c5a44d (patch)
tree3ac6eae776aab54c10a8dd02413a32c26eab2aa4 /.github/workflows
parentshould work (diff)
downloadbeziapp-b7ba86c93150948f81ddc7fb297ff1bde7c5a44d.tar
beziapp-b7ba86c93150948f81ddc7fb297ff1bde7c5a44d.tar.gz
beziapp-b7ba86c93150948f81ddc7fb297ff1bde7c5a44d.tar.bz2
beziapp-b7ba86c93150948f81ddc7fb297ff1bde7c5a44d.tar.lz
beziapp-b7ba86c93150948f81ddc7fb297ff1bde7c5a44d.tar.xz
beziapp-b7ba86c93150948f81ddc7fb297ff1bde7c5a44d.tar.zst
beziapp-b7ba86c93150948f81ddc7fb297ff1bde7c5a44d.zip
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci-deploy.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/ci-deploy.yml b/.github/workflows/ci-deploy.yml
new file mode 100644
index 0000000..067acf6
--- /dev/null
+++ b/.github/workflows/ci-deploy.yml
@@ -0,0 +1,36 @@
+name: CI - copy dist/ to master
+
+on:
+ push:
+ branches:
+ - test1
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout to release branch
+ uses: actions/checkout@v2
+ with:
+ ref: test1
+ - 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 --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 }}