diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index b031aef..0dfd410 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,2 @@ patreon: androz2091 -github: Androz2091 \ No newline at end of file +github: Androz2091 diff --git a/.github/workflows/jsdoc-deploy.yml b/.github/workflows/jsdoc-deploy.yml new file mode 100644 index 0000000..ce11890 --- /dev/null +++ b/.github/workflows/jsdoc-deploy.yml @@ -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 diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..8b152aa --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -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}} \ No newline at end of file diff --git a/.gitignore b/.gitignore index d02ad80..3d3e935 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ test/ lib/ # error logs -yarn-error.log \ No newline at end of file +yarn-error.log diff --git a/.npmignore b/.npmignore index ff95fea..52dfa36 100644 --- a/.npmignore +++ b/.npmignore @@ -2,4 +2,4 @@ src/ tslint.json tsconfig.json .prettierrc -test/ \ No newline at end of file +test/ diff --git a/LICENSE b/LICENSE index 1e22ec2..e1e6f2c 100644 --- a/LICENSE +++ b/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/README.md b/README.md index 78c85d7..466bb91 100644 --- a/README.md +++ b/README.md @@ -154,4 +154,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/tsconfig.json b/tsconfig.json index d75c6d9..3566c04 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,4 +12,4 @@ "include": [ "src/**/*" ] -} \ No newline at end of file +}