merge master

This commit is contained in:
Snowflake107 2021-04-18 23:20:18 +05:45
commit 744c56b156
8 changed files with 53 additions and 6 deletions

28
.github/workflows/jsdoc-deploy.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: GitHub pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build
uses: andstor/jsdoc-action@v1
with:
output_dir: ./docs
config_file: .jsdoc.json
template: Androz2091/jsdoc-skyceil
front_page: README.md
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./docs
cname: discord-player.js.org

19
.github/workflows/npm-publish.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Node.js Package
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}