add dependabot settings to update GitGub Actions and submodules #79
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: push | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
- name: Update theme | |
run: git submodule update --init --recursive | |
- name: Setup hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: "0.121.2" | |
- name: Build | |
run: hugo --minify --environment production | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.DEPLOY_TOKEN }} | |
external_repository: ru-nl/ru-nl.github.io | |
publish_dir: ./public | |
user_name: ru-nl deploy bot | |
user_email: [email protected] | |
publish_branch: master |