Skip to content

Commit

Permalink
Merge pull request #316 from slub/fix-documentation-deployment
Browse files Browse the repository at this point in the history
[BUGFIX] Update documentation.yml
  • Loading branch information
beatrycze-volk authored Oct 11, 2024
2 parents 270d47e + 080521e commit 5ea264f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Documentation
# Build and test documentation on pull_request and push event
# If the git reference is the main branch, additionally build the documentation artifact and deploy it to GitHub Pages
# If the git reference is the master branch, additionally build the documentation artifact and deploy it to GitHub Pages

on: [ push, pull_request ]

Expand All @@ -18,11 +18,11 @@ jobs:
&& docker run -v $(pwd):/project ghcr.io/typo3-documentation/render-guides:latest --config=Documentation --no-progress --fail-on-log
- name: Rename root page
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/master'
run: mv ./Documentation-GENERATED-temp/Index.html ./Documentation-GENERATED-temp/index.html

- name: Upload artifact
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v3
with:
path: ./Documentation-GENERATED-temp/
Expand All @@ -33,7 +33,7 @@ jobs:
# Add a dependency to the build job
needs: build

if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/master'

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
Expand Down

0 comments on commit 5ea264f

Please sign in to comment.