Skip to content

Commit

Permalink
Added Paths filter on docs deployment so that it only runs when chang…
Browse files Browse the repository at this point in the history
…es to the Docs folder happens; fixed issue with linux build by forwarding secrets.
  • Loading branch information
PedroRauizBeamable committed May 25, 2024
1 parent f7aff21 commit 2858ae5
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build_linux_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ on:
required: true
default: 'BEAMPROJ_Sandbox'
type: string

secrets:
GHCR_ACTOR:
required: true
GHCR_TOKEN:
required: true

permissions:
contents: write

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ jobs:
deploy:
uses: Beamable/UnrealSDK/.github/workflows/build_linux_server.yml@dev
with:
beamProj: BEAMPROJ_HathoraDemo
beamProj: BEAMPROJ_HathoraDemo
secrets:
GHCR_ACTOR: ${{ secrets.GHCR_ACTOR }}
GHCR_TOKEN: ${{ secrets.GHCR_TOKEN }}
13 changes: 12 additions & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
name: Windows build
name: Windows Client Build - Template

on:
workflow_dispatch:
push:
branches:
- dev
- main
workflow_call:
inputs:
beamProj:
description: 'The BEAMPROJ we are building. Ie: BEAMPROJ_Sandbox or BEAMPROJ_HathoraDemo.'
required: true
default: 'BEAMPROJ_Sandbox'
type: string

permissions:
contents: write
Expand All @@ -20,6 +27,10 @@ jobs:
- run: git clean -fdx
- name: Prepare Repository for Compilation
run: bash init_repo.sh
- name: Set BeamProjOverride.txt
run: |
echo ${{ inputs.beamProj }} > BeamProjOverride.txt |
cat BeamProjOverride.txt
- name: Build image
run: .\windows_build_project.ps1
- name: Compress Directory
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: Docs deploy
name: Docs - Deploy

on:
push:
branches:
- dev
- main
paths:
- Docs/**

permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2858ae5

Please sign in to comment.