Skip to content

Merge branch 'main' into main #1

Merge branch 'main' into main

Merge branch 'main' into main #1

name: deploy preview (https://htw-imi-showtime.github.io/preview)
on:
push:
branches: [ main, hugo-modules ]
workflow_dispatch:
jobs:
deploy:
if: github.repository == 'htw-imi-showtime/showtime-website'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: false
- name: Get Theme
run: |
git submodule update --init themes/showtime-theme-2021
- name: Hugo setup
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.115.1'
extended: true
- name: Build
run: |
hugo \
--environment production \
--minify \
--baseURL "https://htw-imi-showtime.github.io/preview/"
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.PRODUCTION_PREVIEW_DEPLOY_KEY }}
external_repository: htw-imi-showtime/preview
publish_branch: main