Skip to content

docs: document TZ= environment variable for docker image #26

docs: document TZ= environment variable for docker image

docs: document TZ= environment variable for docker image #26

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Docs
on:
push:
branches: ["main"]
paths:
- "docs/**"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up NodeJS
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install dependencies
run: npm install --prefix ./docs
- name: Build
run: npm run generate --prefix ./docs
- name: Fix permissions
run: |
chmod -c -R +rX "./docs/.output/public" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Check for broken links
uses: ruzickap/action-my-broken-link-checker@v2
with:
url: https://garethgeorge.github.io/backrest/
pages_path: ./docs/.output/public
cmd_params: '-v --max-connections=3 --timeout=20 --buffer-size=8192 --color=always --exclude="(/_nuxt/|discord.com)"'
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./docs/.output/public
deploy:
needs: build
permissions:
pages: write
id-token: write
actions: read
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2