Skip to content

Merge pull request #298 from Infineon/226-documentation-text-input #92

Merge pull request #298 from Infineon/226-documentation-text-input

Merge pull request #298 from Infineon/226-documentation-text-input #92

name: Deploy Master Vue example
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Cache dependencies for packages/components
uses: actions/cache@v2
with:
path: packages/components/node_modules
key: ${{ runner.os }}-npm-packages-components-${{ hashFiles('packages/components/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-packages-components-
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Install rsync 📚 # additional package needed to run github action locally in a docker container
if: ${{ env.ACT }}
run: |
apt-get update && apt-get install -y rsync
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
cd examples/wrapper-components/vue-javascript
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: examples/wrapper-components/vue-javascript/dist/ # The folder the action should deploy.
target-folder: vue-example
clean-exclude: |
pr-preview/
pr-preview-vue-example/
pr-preview-react-example/
pr-preview-angular-example/
pr-preview-vanilla-example/
force: false