feat: Update release draft CI #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push | |
on: | |
push: | |
branches: | |
- master | |
- development | |
workflow_dispatch: | |
workflow_call: | |
secrets: | |
WWISE_EMAIL: | |
required: true | |
WWISE_PASSWORD: | |
required: true | |
GH_TOKEN: | |
required: true | |
WEBHOOK_URL: | |
required: true | |
env: | |
ARTIFACT_NAME: FicsItNetworks | |
permissions: | |
actions: read | |
jobs: | |
filter: | |
name: Filter | |
runs-on: ubuntu-latest | |
outputs: | |
build-mod: ${{ steps.filter.outputs.mod }} | |
build-tools: ${{ steps.filter.outputs.tools }} | |
generate-docs: ${{ steps.filter.outputs.gen-docs }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
mod: | |
- ".github/workflows/build.yml" | |
- "FicsItNetworks.uplugin" | |
- "Content/**" | |
- "Source/**" | |
- "ThirdParty/**" | |
gen-docs: | |
- ".github/workflows/gen-docs.yml" | |
update-draft: | |
- ".github/workflows/update-release-draft.yml" | |
tools: | |
- ".github/workflows/build-tools.yml" | |
- "Tools/DocumentationCLI" | |
update-docs: | |
- ".github/workflows/update-docs.yml" | |
build: | |
needs: filter | |
if: needs.filter.outputs.build-mod == 'true' | |
uses: ./.github/workflows/build.yml | |
with: | |
artifact_name: "$ARTIFACT_NAME" | |
secrets: | |
WWISE_EMAIL: ${{ secrets.WWISE_EMAIL }} | |
WWISE_PASSWORD: ${{ secrets.WWISE_PASSWORD }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} | |
update-draft: | |
needs: build | |
if: always() && (needs.build.result == 'success' || needs.filter.outputs.update-draft == 'true') | |
uses: ./.github/workflows/update-release-draft.yml | |
with: | |
artifact_name: "$ARTIFACT_NAME" | |
generate-docs: | |
needs: [filter, build] | |
if: always() && (needs.build.result == 'success' || needs.filter.outputs.generate-docs == 'true') | |
uses: ./.github/workflows/gen-docs.yml | |
with: | |
artifact_name: "$ARTIFACT_NAME" | |
tools: | |
needs: filter | |
if: needs.filter.outputs.build-tools | |
uses: ./.github/workflows/build-tools.yml | |
update-docs: | |
needs: [filter, generate-docs, tools] | |
if: always() && (needs.generate-docs.result == 'success' || needs.tools.result == 'success' || needs.filter.outputs.update-docs == 'true') | |
uses: ./.github/workflows/update-docs.yml | |
with: | |
artifact_name: "$ARTIFACT_NAME" |