Merge pull request #11 from TobenderZephyr/cleanup

cleaning up repository, changed workflows.
This commit is contained in:
2021-04-18 10:03:00 +02:00
committed by GitHub
5 changed files with 16 additions and 8 deletions

View File

@ -6,19 +6,25 @@ name: Node.js CI
on:
push:
branches: [ master ]
paths:
- '**.jsx?'
- '**.json'
- '**.yml'
- 'Dockerfile'
pull_request:
branches: [ master ]
paths:
- '**.jsx?'
- '**.json'
- '**.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
@ -28,13 +34,16 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm test
deploy:
needs: build
if: ${{github.event_name == 'push'}}
runs-on: ubuntu-latest
steps:
- name: Deploy
- name: Deploy to Dockerhub
run: |
curl -X POST https://api.github.com/repos/TobenderZephyr/dsabot-docker/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.ACCESS_TOKEN }} \
--data '{"event_type": "ping", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'
--data '{"event_type": "Push from '"${{github.ref}}"'", "ref": "'"${{github.ref}}"'", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'" }}'

1
.gitignore vendored
View File

@ -3,6 +3,7 @@ node_modules
.eslintrc.js
.eslintrc.json
.vscode
.github
data/dsabot.db
data/data

View File

@ -1,4 +1,4 @@
[![CodeQL](https://github.com/TobenderZephyr/dsabot/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/TobenderZephyr/dsabot/actions/workflows/codeql-analysis.yml)
# DSA Discord Bot
This Project is a fork of LucaSchwan/dsa-bot.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long