Skip to content

Merge pull request #959 from aziontech/dev #155

Merge pull request #959 from aziontech/dev

Merge pull request #959 from aziontech/dev #155

Workflow file for this run

name: Generate docs and upload to wiki
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: golang:1.22.5
env:
CGO_ENABLED: 0 # Statically linked
steps:
- name: Setting GIT
run: git config --global url."https://${{ secrets.GLOBAL_TOKEN }}:x-oauth-basic@github.com/aziontech".insteadOf "https://github.com/aziontech"
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate docs
run: go run ./cmd/gen_docs/main.go --file-type "md" --doc-path "/tmp/docs"
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
repository: ${{github.repository}}.wiki
- name: Copy files
run: cp /tmp/docs/* .
- name: Commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Add changes"
git push