Skip to content

Commit b55e177

Browse files
add deployment workflow (#67)
1 parent 232f5cf commit b55e177

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 20
10+
11+
steps:
12+
- name: Get sources
13+
uses: actions/checkout@v3
14+
15+
- name: Use Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: '20'
19+
20+
- name: Restore npm cache
21+
uses: actions/cache@v3
22+
with:
23+
path: ./node_modules
24+
key: ${{ runner.os }}-node-modules
25+
26+
- name: Run npm install
27+
run: npm install --no-audit --no-fund
28+
29+
- name: Install Internal Package
30+
run: |
31+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
32+
DEVEXTREME_INTERNAL_VERSION=$(npm pkg get dependencies.devextreme --workspaces=false | tr -d '"')
33+
npm pack @devexpress/devextreme-internal@$DEVEXTREME_INTERNAL_VERSION --registry https://npm.pkg.github.com
34+
npm i devextreme@$(find . -name DevExpress-devextreme-internal-*.tgz)
35+
36+
- name: Build
37+
run: npm run build
38+
39+
- name: Deploy
40+
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
41+
with:
42+
branch: gh-pages
43+
folder: dist
44+
target-folder: .

0 commit comments

Comments
 (0)