Skip to content

Commit 0403b1a

Browse files
committed
ci: use action
1 parent 3933803 commit 0403b1a

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

‎.github/workflows/extract-templates.yml‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,10 @@ jobs:
3030
# Replace App_Resources path in the config
3131
sed -i 's/\.\.\/\.\.\/tools\/assets\/App_Resources/App_Resources/g' nativescript.config.ts
3232
33-
# init a git repo, set up the committer and push the template to the branch
34-
35-
git config --global user.name 'NativeScript-Bot'
36-
git config --global user.email 'oss@nativescript.org'
37-
git config --global init.defaultBranch ${{ matrix.starter }}
38-
39-
git init
40-
git remote add github ${{ github.repositoryUrl }}
41-
git add --all
42-
git commit -am 'chore(update): $(date)'
43-
git status
44-
git log
45-
# git push --force --dry-run github ${{ matrix.starter }}
33+
- name: Deploy
34+
uses: s0/git-publish-subdir-action@develop
35+
env:
36+
REPO: self
37+
BRANCH: ${{ matrix.starter }}
38+
FOLDER: dist/nativescript-starter-${{ matrix.starter }}
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)