Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen77sk committed Aug 19, 2024
1 parent 07d580a commit ca1cde2
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,44 +10,46 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Syncing repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.14.0
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Build Application
run: npm run build-demo

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

test:
name: Test
runs-on: ubuntu-latest

steps:
- name: Syncing repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.14.0
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Test Lib
run: npm run test-lib
- name: Test Demo
Expand All @@ -63,13 +65,13 @@ jobs:

steps:
- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: dist
path: dist/

- name: Deploy demo
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/angular-touch-keyboard

0 comments on commit ca1cde2

Please sign in to comment.