merge: align html-protocol docs with spec §2.1, §2.2, §3.1 #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| wordpress: | |
| name: WordPress Plugin | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.3" | |
| extensions: intl, mbstring, mysqli | |
| tools: composer | |
| - name: Configure private dep access | |
| env: | |
| TOKEN: ${{ secrets.HTMLTRUST_PKG_TOKEN }} | |
| run: | | |
| git config --global url."https://x-access-token:${TOKEN}@github.com/".insteadOf "https://github.com/" | |
| composer config --global github-oauth.github.com "${TOKEN}" | |
| - name: Install dependencies | |
| working-directory: wordpress | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Package plugin | |
| run: | | |
| mkdir -p dist | |
| cd wordpress | |
| zip -r ../dist/htmltrust-wordpress-plugin.zip . \ | |
| -x "vendor/*" "tests/*" "bin/*" "composer.lock" "phpunit.xml" | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: wordpress-plugin | |
| path: dist/htmltrust-wordpress-plugin.zip | |
| hugo: | |
| name: Hugo Integration | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Verify Hugo partials syntax | |
| run: | | |
| echo "Checking partial files exist and are non-empty..." | |
| test -s hugo/layouts/partials/htmltrust-signed-section.html && echo " ✓ htmltrust-signed-section.html" | |
| test -s hugo/layouts/partials/htmltrust-meta.html && echo " ✓ htmltrust-meta.html" | |
| test -s hugo/scripts/sign-site.mjs && echo " ✓ sign-site.mjs" | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: hugo-integration | |
| path: | | |
| hugo/layouts/ | |
| hugo/scripts/ | |
| hugo/README.md |