feat(angular): v18 #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Extract Templates | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
starter: ['angular', 'javascript', 'react', 'solid', '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 }} |