cleaning up repository, changed workflows.

This commit is contained in:
2021-04-18 09:49:04 +02:00
parent c86e20cfcd
commit 627c1908c2
5 changed files with 14 additions and 8 deletions

View File

@ -6,19 +6,23 @@ name: Node.js CI
on: on:
push: push:
branches: [ master ] branches: [ master ]
paths:
- '**.jsx?'
- '**.json'
- 'Dockerfile'
pull_request: pull_request:
branches: [ master ] branches: [ master ]
paths:
- '**.jsx?'
- '**.json'
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [10.x, 12.x, 14.x, 15.x] node-version: [10.x, 12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
@ -28,13 +32,16 @@ jobs:
- run: npm ci - run: npm ci
- run: npm run build --if-present - run: npm run build --if-present
- run: npm test - run: npm test
deploy: deploy:
needs: build needs: build
if: ${{github.event_name == 'push'}}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Deploy - name: Deploy to Dockerhub
run: | run: |
curl -X POST https://api.github.com/repos/TobenderZephyr/dsabot-docker/dispatches \ curl -X POST https://api.github.com/repos/TobenderZephyr/dsabot-docker/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \ -H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.ACCESS_TOKEN }} \ -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.js
.eslintrc.json .eslintrc.json
.vscode .vscode
.github
data/dsabot.db data/dsabot.db
data/data 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 # DSA Discord Bot
This Project is a fork of LucaSchwan/dsa-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