mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 20:13:30 +01:00
ci: uploading to before mv
This commit is contained in:
22
.github/workflows/documentation.yml
vendored
22
.github/workflows/documentation.yml
vendored
@@ -129,6 +129,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag: ${{ github.ref_name }}
|
tag: ${{ github.ref_name }}
|
||||||
|
|
||||||
|
- name: Upload documentation to database
|
||||||
|
if: ${{ github.ref_type == 'tag' && matrix.package == steps.extract-tag.outputs.package }}
|
||||||
|
env:
|
||||||
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||||
|
uses: ./packages/actions/src/uploadDocumentation
|
||||||
|
with:
|
||||||
|
package: ${{ steps.extract-tag.outputs.package }}
|
||||||
|
version: ${{ steps.extract-tag.outputs.semver }}
|
||||||
|
|
||||||
- name: Move docs to correct directory
|
- name: Move docs to correct directory
|
||||||
if: ${{ github.ref_type == 'tag' && matrix.package == steps.extract-tag.outputs.package }}
|
if: ${{ github.ref_type == 'tag' && matrix.package == steps.extract-tag.outputs.package }}
|
||||||
env:
|
env:
|
||||||
@@ -144,13 +153,12 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload documentation to database
|
- name: Upload documentation to database
|
||||||
if: ${{ github.ref_type == 'tag' && matrix.package == steps.extract-tag.outputs.package }}
|
if: ${{ github.ref_type == 'branch' }}
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||||
uses: ./packages/actions/src/uploadDocumentation
|
uses: ./packages/actions/src/uploadDocumentation
|
||||||
with:
|
with:
|
||||||
package: ${{ steps.extract-tag.outputs.package }}
|
package: ${{ matrix.package }}
|
||||||
version: ${{ steps.extract-tag.outputs.semver }}
|
|
||||||
|
|
||||||
- name: Move docs to correct directory
|
- name: Move docs to correct directory
|
||||||
if: ${{ github.ref_type == 'branch' }}
|
if: ${{ github.ref_type == 'branch' }}
|
||||||
@@ -165,14 +173,6 @@ jobs:
|
|||||||
mv docs/${PACKAGE}/docs/docs.api.json out/${PACKAGE}/${GITHUB_REF_NAME}.api.json
|
mv docs/${PACKAGE}/docs/docs.api.json out/${PACKAGE}/${GITHUB_REF_NAME}.api.json
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload documentation to database
|
|
||||||
if: ${{ github.ref_type == 'branch' }}
|
|
||||||
env:
|
|
||||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
|
||||||
uses: ./packages/actions/src/uploadDocumentation
|
|
||||||
with:
|
|
||||||
package: ${{ matrix.package }}
|
|
||||||
|
|
||||||
- name: Commit and push
|
- name: Commit and push
|
||||||
run: |
|
run: |
|
||||||
cd out
|
cd out
|
||||||
|
|||||||
Reference in New Issue
Block a user