Skip to content

Commit 557dc8b

Browse files
committed
ci: dry run
1 parent 8812cbe commit 557dc8b

2 files changed

Lines changed: 41 additions & 11 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Extract Templates
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
matrix:
12+
starter: ['angular', 'javascript', 'react', 'svelte', 'typescript', 'vue']
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- run: |
17+
# create output directory
18+
mkdir dist/
19+
20+
# copy template to output directory
21+
cp -r apps/nativescript-starter-${{ matrix.starter }} dist/
22+
23+
# enter template directory
24+
cd dist/nativescript-starter-${{ matrix.starter }}
25+
26+
# Remove nx project config
27+
rm project.json
28+
29+
# Replace App_Resources path in the config
30+
sed -i 's/\.\.\/\.\.\/tools\/assets\/App_Resources/App_Resources/g' nativescript.config.ts
31+
32+
# init a git repo, set up the committer and push the template to the branch
33+
34+
git config --global user.name 'NativeScript-Bot'
35+
git config --global user.email 'oss@nativescript.org'
36+
37+
git init -y
38+
git checkout -b ${{ matrix.starter }}
39+
git remote add origin ${{ github.repositoryUrl }}
40+
git commit -am "chore(update): $(date)"
41+
git push origin ${{ matrix.starter }} --allow-unrelated-histories --dry-run

‎apps/nativescript-starter-angular/nativescript.config.local.ts‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)