mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 04:53:30 +01:00
ci: fix documentation manual dispatch run on tag (#10007)
This commit is contained in:
12
.github/workflows/documentation.yml
vendored
12
.github/workflows/documentation.yml
vendored
@@ -61,14 +61,14 @@ jobs:
|
|||||||
path: 'out'
|
path: 'out'
|
||||||
|
|
||||||
- name: Extract package and semver from tag
|
- name: Extract package and semver from tag
|
||||||
if: ${{ github.ref_type == 'tag' }}
|
if: ${{ inputs.ref_type && inputs.ref_type == 'tag' || !inputs.ref_type && github.ref_type == 'tag' }}
|
||||||
id: extract-tag
|
id: extract-tag
|
||||||
uses: ./packages/actions/src/formatTag
|
uses: ./packages/actions/src/formatTag
|
||||||
with:
|
with:
|
||||||
tag: ${{ github.ref_name }}
|
tag: ${{ inputs.ref || github.ref_name }}
|
||||||
|
|
||||||
- name: Upload documentation to database
|
- name: Upload documentation to database
|
||||||
if: ${{ github.ref_type == 'tag' }}
|
if: ${{ inputs.ref_type && inputs.ref_type == 'tag' || !inputs.ref_type && github.ref_type == 'tag' }}
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||||
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
|
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
|
||||||
@@ -78,7 +78,7 @@ jobs:
|
|||||||
version: ${{ steps.extract-tag.outputs.semver }}
|
version: ${{ steps.extract-tag.outputs.semver }}
|
||||||
|
|
||||||
- name: Move docs to correct directory
|
- name: Move docs to correct directory
|
||||||
if: ${{ github.ref_type == 'tag' }}
|
if: ${{ inputs.ref_type && inputs.ref_type == 'tag' || !inputs.ref_type && github.ref_type == 'tag' }}
|
||||||
env:
|
env:
|
||||||
PACKAGE: ${{ steps.extract-tag.outputs.package }}
|
PACKAGE: ${{ steps.extract-tag.outputs.package }}
|
||||||
SEMVER: ${{ steps.extract-tag.outputs.semver }}
|
SEMVER: ${{ steps.extract-tag.outputs.semver }}
|
||||||
@@ -92,14 +92,14 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload documentation to database
|
- name: Upload documentation to database
|
||||||
if: ${{ github.ref_type == 'branch' }}
|
if: ${{ inputs.ref_type && inputs.ref_type == 'branch' || !inputs.ref_type && github.ref_type == 'branch' }}
|
||||||
env:
|
env:
|
||||||
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
DATABASE_URL: ${{ secrets.DATABASE_URL }}
|
||||||
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
|
BLOB_READ_WRITE_TOKEN: ${{ secrets.BLOB_READ_WRITE_TOKEN }}
|
||||||
uses: ./packages/actions/src/uploadDocumentation
|
uses: ./packages/actions/src/uploadDocumentation
|
||||||
|
|
||||||
- name: Move docs to correct directory
|
- name: Move docs to correct directory
|
||||||
if: ${{ github.ref_type == 'branch' }}
|
if: ${{ inputs.ref_type && inputs.ref_type == 'branch' || !inputs.ref_type && github.ref_type == 'branch' }}
|
||||||
run: |
|
run: |
|
||||||
declare -a PACKAGES=("brokers" "builders" "collection" "core" "discord.js" "formatters" "next" "proxy" "rest" "util" "voice" "ws")
|
declare -a PACKAGES=("brokers" "builders" "collection" "core" "discord.js" "formatters" "next" "proxy" "rest" "util" "voice" "ws")
|
||||||
for PACKAGE in "${PACKAGES[@]}"; do
|
for PACKAGE in "${PACKAGES[@]}"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user