Skip to content

chore: update angular version (#10) #50

chore: update angular version (#10)

chore: update angular version (#10) #50

name: Extract Templates
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
starter: ['angular', 'javascript', 'react', 'svelte', 'typescript', 'vue']
steps:
- uses: actions/checkout@v3
- run: |
# create output directory
mkdir dist/
# copy template to output directory
cp -r apps/nativescript-starter-${{ matrix.starter }} dist/
# enter template directory
cd dist/nativescript-starter-${{ matrix.starter }}
# copy gitignore from template
cp ../../tools/assets/dot.gitignore .gitignore
# remove nx project config
rm project.json
# replace App_Resources path in the config
sed -i 's/\.\.\/\.\.\/tools\/assets\/App_Resources/App_Resources/g' nativescript.config.ts
# print all files
ls -al .
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: ${{ matrix.starter }}
MESSAGE: "chore(update): {target-branch} to {sha}"
FOLDER: dist/nativescript-starter-${{ matrix.starter }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}