mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 19:34:47 +12:00
ci: reduce the amount of yml files
This commit is contained in:
parent
e7a961781c
commit
0c14616ffc
2 changed files with 18 additions and 28 deletions
|
@ -1,4 +1,4 @@
|
|||
name: Webpack
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -8,8 +8,23 @@ on:
|
|||
- '!docs'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: deploy
|
||||
docs:
|
||||
name: docs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: install node v12
|
||||
uses: actions/setup-node@master
|
||||
with:
|
||||
node-version: 12
|
||||
- name: npm install
|
||||
run: npm install
|
||||
- name: docs
|
||||
uses: discordjs/action-docs@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
webpack:
|
||||
name: webpack
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
25
.github/workflows/docs.yml
vendored
25
.github/workflows/docs.yml
vendored
|
@ -1,25 +0,0 @@
|
|||
name: Docs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- '!webpack'
|
||||
- '!docs'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: deploy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: install node v12
|
||||
uses: actions/setup-node@master
|
||||
with:
|
||||
node-version: 12
|
||||
- name: npm install
|
||||
run: npm install
|
||||
- name: deploy docs
|
||||
uses: discordjs/action-docs@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in a new issue