Skip to content

Commit 7b178ed

Browse files
committed
ci: remove travis yaml, add actions workflow
1 parent 801ea29 commit 7b178ed

2 files changed

Lines changed: 42 additions & 31 deletions

File tree

.github/workflows/build-deploy.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build and deploy samples
2+
3+
on:
4+
push:
5+
branches: [ "[0-9]+.[0-9]" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Checkout dist repo
16+
uses: actions/checkout@v3
17+
with:
18+
repository: IgniteUI/help-samples
19+
token: ${{ secrets.GH_PAT }}
20+
path: dist
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: lts
26+
27+
- name: Cleanup target version
28+
run: rm -rf dist/${{ github.ref_name }}
29+
30+
- name: Build
31+
run: |
32+
npm install
33+
gulp build-samples --ignite-version ${{ github.ref_name }} --ignite-ui https://cdn-na.infragistics.com/igniteui/latest
34+
35+
- name: Commit and push to dist repo
36+
run: |
37+
cd dist
38+
git config user.email "igniteui@infragistics.com"
39+
git config user.name "igniteui-deploy"
40+
git add --all
41+
if [ -n "$(git status --porcelain)" ]; then git commit -m "Samples for ${{ github.ref_name }}"; fi
42+
git push -fq

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)