Skip to content

build(deps): bump tar and @angular/cli (#512) #150

build(deps): bump tar and @angular/cli (#512)

build(deps): bump tar and @angular/cli (#512) #150

Workflow file for this run

name: Deploy dev preview
concurrency:
group: dev-preview
cancel-in-progress: true
on:
push:
branches:
- main
jobs:
deploy-dev-preview:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- uses: actions/setup-node@v6
with:
node-version: "22"
- run: npm install
- run: npx update-browserslist-db@latest
- name: Build web-component
run: |
# create the bundles required for studio-web
npx nx bundle web-component
- name: Test
run: |
npx nx test:once studio-web
- name: Build
run: |
sed -r -i 's:readalong-studio.mothertongues.org/:readalong-studio.mothertongues.org/dev/:g' packages/studio-web/src/environments/environment.prod.ts
npx nx build studio-web --configuration=production --base-href=/dev/
npx nx build studio-web --configuration=production --base-href=/dev/ --localize=fr --deleteOutputPath=false
npx nx build studio-web --configuration=production --base-href=/dev/ --localize=es --deleteOutputPath=false
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@9d877eea73427180ae43cf98e8914934fe157a1a # v4.7.6
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist/packages/studio-web # The folder the action should deploy.
force: false # rebase instead of force push by default
target-folder: dev
commit-message: "Deploy dev preview to gh-pages from @ ${{ github.repository }}@${{ github.sha }}"