Corrected the deployment path #4
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: Build and Deploy Angular App | |
on: | |
push: | |
branches: | |
- main # Change this to your default branch if it's not 'main' | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up NODEJS | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "18.x" | |
- name: Install dependencies | |
run: yarn | |
- name: Build Angular app | |
run: yarn build -c=production --base-href /i18neditor/ | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist/i18neditor/browser # Change this to your Angular app's build output directory |