Skip to content

Commit

Permalink
fixup! ci: fix cache, improve feedback and build times
Browse files Browse the repository at this point in the history
  • Loading branch information
l-zeuch committed Dec 22, 2023
1 parent b5f0481 commit b00a52d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ jobs:
run: hugo --noChmod --minify --baseURL="https://botlabs-gg.github.io/yagpdb-docs-v2"

- name: Setup Pages
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
id: pages
uses: actions/configure-pages@v4

- name: Upload artifact
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: actions/upload-pages-artifact@v2
with:
path: ./public

deploy:
# Only deploy if it's actually on main branch
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
# Only deploy if it's actually on production branch
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
needs: build
environment:
name: github-pages
Expand Down

0 comments on commit b00a52d

Please sign in to comment.