This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
Merge pull request #23 from nais/observability #117
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: main | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.104.2' | |
extended: true | |
- name: Build | |
run: hugo | |
- name: Commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action user" | |
mv public docs | |
git add -f docs | |
git commit -m "Add generated content" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: export | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true |