Skip to content

Offline Registration - Clarify that re-registration is not necessary #876

Offline Registration - Clarify that re-registration is not necessary

Offline Registration - Clarify that re-registration is not necessary #876

Workflow file for this run

name: CI
on:
push:
branches:
- '*'
tags:
- '*'
permissions:
contents: write
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: pip
- uses: actions/setup-go@v4
with:
go-version: '^1.22.3'
cache-dependency-path: unneeded-html-remover/go.sum
- name: Install dependencies
run: pip install -r requirements.txt
- name: Get minify
run: wget -qO- https://github.com/tdewolff/minify/releases/download/v2.20.7/minify_linux_amd64.tar.gz | tar -xz
- name: Set version
run: |
echo "${GITHUB_REF_NAME}" > version
cat conf.py
- name: Build pages
run: sh ./buildAll.sh
- name: Minify files
run: ./minify -v -r --sync -o . _build
- name: Make copy for local help
run: cp -r _build Help/
- name: unneeded-html-remover
run: go run . ../Help
working-directory: unneeded-html-remover
- name: Minify local files
run: ./minify -v -r --sync -o . Help
- run: ls Help
- name: Create language archives
run: |
languages=('en' 'ja' 'ko' 'zh-cn' 'zh-tw')
for language in "${languages[@]}"
do
zip -r "${language}.zip" "Help/${language}" -x **/sitemap.xml **/.doctrees/** **/objects.inv
done
- name: Create archive
run: |
zip -r archive.zip Help \
-x Help/404.html Help\en\404.html Help/index.html **/sitemap.xml **/.doctrees/** **/objects.inv
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: archive.zip
- name: Create archive directory
run: mv _build help_pages
- name: Add to build folder
run: cp -r _add_to_build/* help_pages
- name: Configure GitHub Pages
if: ${{ github.ref_type == 'tag' }}
uses: actions/configure-pages@v3
- name: Create archive
run: zip -r help_pages.zip help_pages
- name: Upload help_pages
uses: actions/upload-artifact@v4
with:
name: help_pages
path: help_pages.zip
- name: Upload pages
if: ${{ github.ref_type == 'tag' }}
uses: actions/upload-pages-artifact@v3
with:
path: help_pages
- uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
cache-dependency-path: 'automation-test/package-lock.json'
- name: Test
run: |
npm ci
npm start
working-directory: automation-test
- name: Publish asset
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v1
with:
files: archive.zip
- name: Publish English
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v1
with:
files: en.zip
- name: Publish Japanese
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v1
with:
files: ja.zip
- name: Publish Korean
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v1
with:
files: ko.zip
- name: Publish Chinese Simplified
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v1
with:
files: zh-cn.zip
- name: Publish Chinese Traditional
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v1
with:
files: zh-tw.zip
deploy:
if: ${{ github.ref_type == 'tag' && github.ref_name != '0.0.0'}}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get gitleaks
run: |
wget -qO- https://github.com/gitleaks/gitleaks/releases/download/v8.18.0/gitleaks_8.18.0_linux_x64.tar.gz | tar xvz
- name: Check for secrets
run: |
./gitleaks detect -v --redact