Skip to content

Improve build switches #44

Improve build switches

Improve build switches #44

name: "Pull from Armbian config"
on:
push:
branches:
- master
workflow_dispatch:
jobs:
Build:
name: "Pull"
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'armbian' }}
steps:
- name: Checkout main documentation
uses: actions/checkout@v4
with:
repository: 'armbian/documentation'
path: 'documentation'
- name: Checkout Armbian config repository
uses: actions/checkout@v4
with:
repository: 'armbian/configng'
path: 'config'
- name: Make docs
run: |
cd config
tools/config-assemble.sh -p
tools/config-markdown.py -u
# rsync images first
rsync -avr tools/include/images/. ../documentation/docs/images/
# this section goes under armbian-config
mkdir -p ../documentation/docs/User-Guide_Armbian-Config/
rsync -avr docs/Localisation/Localisation.user.md ../documentation/docs/User-Guide_Armbian-Config/Localisation.md
rsync -avr docs/Network/Network.user.md ../documentation/docs/User-Guide_Armbian-Config/Network.md
rsync -avr docs/System/System.user.md ../documentation/docs/User-Guide_Armbian-Config/System.md
# the rest goes under armbian-software
mkdir -p ../documentation/docs/User-Guide_Armbian-Software/
rsync -avr docs/Software/Containers.user.md ../documentation/docs/User-Guide_Armbian-Software/Containers.md
rsync -avr docs/Software/Desktops.user.md ../documentation/docs/User-Guide_Armbian-Software/Desktops.md
rsync -avr docs/Software/DevTools.user.md ../documentation/docs/User-Guide_Armbian-Software/DevTools.md
rsync -avr docs/Software/Management.user.md ../documentation/docs/User-Guide_Armbian-Software/Management.md
rsync -avr docs/Software/Media.user.md ../documentation/docs/User-Guide_Armbian-Software/Media.md
rsync -avr docs/Software/Netconfig.user.md ../documentation/docs/User-Guide_Armbian-Software/Netconfig.md
- name: Create Pull Request to documentation
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
path: documentation
commit-message: '`Automatic` documentation update'
signoff: false
branch: auto-update-docs
delete-branch: true
title: '`Automatic` documentation update'
body: |
Generate documentation.
labels: |
Needs review
#assignees: igorpecovnik
#reviewers: Must be org collaborator
draft: false