Add file input component to form package with basic demo (#458) #146
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: demo-cd | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "apps/demo/**" | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build and Deploy | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- uses: actions/checkout@v4 | |
name: Use node ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@v4 | |
name: Setup pnpm and install dependencies | |
- name: Get current package version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@v1.3.1 | |
with: | |
path: "apps/demo" | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Build packages | |
run: pnpm build --filter=@dzangolab/vue3-demo | |
env: | |
VITE_API_BASE_URL: "https://api.monorepo.dzangolab.org" | |
VITE_APP_TITLE: 'Vuejs Demo' | |
VITE_APP_VERSION: ${{ steps.package-version.outputs.current-version}} | |
VITE_APP_BUILD: 'develop' | |
VITE_COPYRIGHT_HOLDER: 'Dzango' | |
VITE_COPYRIGHT_HOLDER_URL: 'https://dzango.com' | |
VITE_I18N_FALLBACK_LOCALE: "en" | |
VITE_I18N_LOCALES: "en,fr" | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
clean: true | |
folder: apps/demo/dist | |
token: ${{ secrets.GITHUB_TOKEN }} |