Skip to content

Commit

Permalink
Replace travis with github actions (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed Feb 23, 2021
1 parent a1a019c commit 2ea43ae
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 25 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy

on:
release:
types: [created]

jobs:
npm:
name: NPM
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

directory:
name: Directory website
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent
working-directory: directory
- name: Build directory
run: yarn build
working-directory: directory
- name: Publish static assets to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
branch: gh-pages
folder: directory/build
21 changes: 21 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Tests

on:
- push
- pull_request

jobs:
lint:
name: Static analysis
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Install dependencies
run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts
- name: Lint files
run: yarn test
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

0 comments on commit 2ea43ae

Please sign in to comment.