Skip to content

Merge pull request #55 from monal-im/wise-homepage-fix #134

Merge pull request #55 from monal-im/wise-homepage-fix

Merge pull request #55 from monal-im/wise-homepage-fix #134

# This is a basic workflow to help you get started with Actions
name: Publish to Github pages
# Controls when the workflow will run
on:
# Triggers the workflow on push events but only for the master branch
push:
branches: [ staging ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
buildAndDeploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Install and Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
extended: true
- name: Build site
run: hugo --minify --gc --baseURL https://monal-im.github.io/monal-im.org/
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/staging'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public