Skip to content

Commit

Permalink
Use GitHub Actions instead of Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Jan 20, 2021
1 parent f24fc5f commit 03b70fc
Show file tree
Hide file tree
Showing 9 changed files with 405 additions and 358 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test and build
uses: actions/setup-node@v1
- run: npm install
- run: npm run test
env:
CI: true
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy
env:
CI: true
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup Node
uses: actions/setup-node@v1
- run: npm install
- name: Github pages
uses: sterlingwes/[email protected]
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
source-directory: dist/ngx-schema-form
build-command: npm run build-demo
- name: Tag
run: ./tag-version.sh
- run: npm run build:lib
- name: Publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: ./dist/schema-form/package.json
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 03b70fc

Please sign in to comment.