Skip to content

Commit

Permalink
Add badge, fix deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisBrunner committed Apr 29, 2020
1 parent 5c6d47f commit 8da5896
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 19 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -25,7 +24,7 @@ jobs:
restore-keys: ${{ runner.os }}-node-${{ matrix.node-version }}-
- name: Install dependencies
run: npm install
- run: npm run ci:test
- run: npm run test:ci
- run: npm run lint
- name: Coveralls
uses: coverallsapp/github-action@master
Expand All @@ -41,8 +40,9 @@ jobs:
path: examples

finish:
needs: build
runs-on: ubuntu-latest
needs: build

steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
Expand All @@ -63,12 +63,12 @@ jobs:
- name: Download examples build
uses: actions/download-artifact@v1
with:
name: Snowflake
name: Examples
path: examples
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: peaceiris/actions-gh-pages@v3
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: examples
clean: true
github_token: ${{ secrets.GITHUB_TOKEN }}
enable_jekyll: true
publish_dir: ./
force_orphan: true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ node_modules
# Code coverage
/.nyc_output
/coverage
/examples/*.js
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2016-2017 Louis Brunner
Copyright (c) 2016-2020 Louis Brunner

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DnD Multi Backend [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coveralls-image]][coveralls-url]
# DnD Multi Backend [![NPM Version][npm-image]][npm-url] ![Build Status][ci-image] [![Coverage Status][coveralls-image]][coveralls-url]

This project is a Drag'n'Drop backend compatible with [DnD Core](https://github.com/react-dnd/react-dnd).

Expand Down Expand Up @@ -28,13 +28,12 @@ Thanks to the [React DnD HTML5 Backend](https://github.com/react-dnd/react-dnd)

## License

MIT, Copyright (c) 2016-2019 Louis Brunner
MIT, Copyright (c) 2016-2020 Louis Brunner



[npm-image]: https://img.shields.io/npm/v/dnd-multi-backend.svg
[npm-url]: https://npmjs.org/package/dnd-multi-backend
[travis-image]: https://travis-ci.org/LouisBrunner/dnd-multi-backend.svg?branch=master
[travis-url]: https://travis-ci.org/LouisBrunner/dnd-multi-backend
[ci-image]: https://github.com/LouisBrunner/dnd-multi-backend/workflows/Build/badge.svg
[coveralls-image]: https://coveralls.io/repos/github/LouisBrunner/dnd-multi-backend/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/LouisBrunner/dnd-multi-backend?branch=master
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"lint": "eslint .",
"test": "jest --config jest.config.js",
"test:watch": "npm run test -- --watch",
"ci:test": "CI=yes npm run test",
"test:ci": "CI=yes npm run test",
"start": "webpack-dev-server --config webpack/dev.js",
"prepush": "npm run lint && npm run test",
"prepare": "npm run clean && npm run lint && npm run build && npm run test",
Expand Down
2 changes: 1 addition & 1 deletion packages/dnd-multi-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ manager.getBackend().connectDropTarget(dstId, dstP);

## License

MIT, Copyright (c) 2016-2019 Louis Brunner
MIT, Copyright (c) 2016-2020 Louis Brunner



Expand Down
2 changes: 1 addition & 1 deletion packages/react-dnd-multi-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Starting with `5.0.0`, `react-dnd-preview` (which provides the `Preview` compone

## License

MIT, Copyright (c) 2016-2019 Louis Brunner
MIT, Copyright (c) 2016-2020 Louis Brunner



Expand Down
2 changes: 1 addition & 1 deletion packages/react-dnd-preview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Starting with `5.0.0`, `react-dnd-preview` will start passing its arguments pack

## License

MIT, Copyright (c) 2016-2019 Louis Brunner
MIT, Copyright (c) 2016-2020 Louis Brunner



Expand Down

0 comments on commit 8da5896

Please sign in to comment.