cleaning up repository, changed workflows.
This commit is contained in:
17
.github/workflows/node.js.yml
vendored
17
.github/workflows/node.js.yml
vendored
@ -6,19 +6,23 @@ name: Node.js CI
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- '**.jsx?'
|
||||
- '**.json'
|
||||
- 'Dockerfile'
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
paths:
|
||||
- '**.jsx?'
|
||||
- '**.json'
|
||||
|
||||
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 +32,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
1
.gitignore
vendored
@ -3,6 +3,7 @@ node_modules
|
||||
.eslintrc.js
|
||||
.eslintrc.json
|
||||
.vscode
|
||||
.github
|
||||
data/dsabot.db
|
||||
data/data
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
|
||||
[](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
Reference in New Issue
Block a user