forked from react-native-elements/react-native-elements
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.17 KB
/
dist.yml
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
37
name: Bleeding Edge version
on:
push:
branches:
- "next"
paths-ignore:
- "website/**"
- "example/**"
- ".github/**"
jobs:
checks:
uses: ./.github/workflows/test.yml
build:
needs: checks
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Install dependencies
uses: ./.github/actions/install
- name: Build packages
run: yarn build
- name: Config git
run: |
git config --local user.email "[email protected]"
git config --local user.name "React Native Elements CI"
- name: Create local changes
run: |
sed -i -e 's/dist/src/g' .gitignore
git add .
git commit -m "Bleeding Edge Version" -a --no-verify
- name: Deploy Bleeding Edge version'@react-native-elements/*' packages
run: |
for pkg in $(find ./packages -mindepth 1 -maxdepth 1 -type d -printf '%f\n'); do
echo "Deploying @react-native-elements/$pkg"
git push origin `git subtree split --prefix packages/$pkg -b $pkg`:refs/heads/$pkg --force
done