Merge pull request #11 from TobenderZephyr/cleanup
cleaning up repository, changed workflows.
This commit is contained in:
19
.github/workflows/node.js.yml
vendored
19
.github/workflows/node.js.yml
vendored
@ -6,19 +6,25 @@ name: Node.js CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- '**.jsx?'
|
||||||
|
- '**.json'
|
||||||
|
- '**.yml'
|
||||||
|
- 'Dockerfile'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- '**.jsx?'
|
||||||
|
- '**.json'
|
||||||
|
- '**.yml'
|
||||||
|
|
||||||
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 +34,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
1
.gitignore
vendored
@ -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
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
|
[](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
Reference in New Issue
Block a user