airajena commented on code in PR #53: URL: https://github.com/apache/fineract-site/pull/53#discussion_r2844679064
########## .github/workflows/site-publish.yml: ########## @@ -0,0 +1,58 @@ +name: Site Publish + +on: + push: + branches: + - asf-site + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: site-publish + cancel-in-progress: false + +jobs: + publish: + # Prevent publish loops from bot commits and restrict to upstream repo. + if: github.repository == 'apache/fineract-site' && github.actor != 'github-actions[bot]' && (github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip-publish]')) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Build site with pinned Hugo container + run: bash ./scripts/site-build.sh --cleanDestinationDir + + - name: Check internal links + run: python3 ./scripts/check_internal_links.py --site-root .build/site + + - name: Sync generated output into repository root + run: | + rsync -a --delete \ + --exclude '.git/' \ + --exclude '.github/' \ + --exclude 'site-src/' \ + --exclude 'scripts/' \ + --exclude '.build/' \ + --exclude '.asf.yaml' \ + --exclude '.gitignore' \ + --exclude 'README.md' \ + --exclude 'CONTRIBUTING.md' \ + --exclude 'LICENSE.txt' \ + .build/site/ ./ Review Comment: Good catch. I reproduced this locally as well. I’ll add .htmlhintrc to the rsync exclude list so publish sync doesn’t delete repository-level config files. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
