-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Logius-standaarden/develop
XSD display
- Loading branch information
Showing
6 changed files
with
58 additions
and
54 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,44 @@ | ||
name: Build and Check | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
jobs: | ||
main: | ||
name: HTML | ||
runs-on: ubuntu-20.04 | ||
build: | ||
name: Build | ||
uses: Logius-standaarden/Automatisering/.github/workflows/build.yml@main | ||
check: | ||
needs: build | ||
name: Check | ||
uses: Logius-standaarden/Automatisering/.github/workflows/check.yml@main | ||
|
||
preview: | ||
needs: build | ||
name: Preview | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npx respec --localhost --src index.html --out snapshot.html | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
- name: Recover HTML | ||
uses: actions/cache@v2 | ||
with: | ||
commit_message: static HTML | ||
wcag: | ||
needs: main | ||
name: WCAG | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: git pull | ||
- run: npm install -g pa11y | ||
- run: pa11y ./snapshot.html | ||
pdf: | ||
needs: main | ||
name: PDF | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- run: | | ||
sudo apt-get install -y xfonts-base xfonts-75dpi | ||
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb -O wkhtmltopdf.deb | ||
sudo dpkg -i wkhtmltopdf.deb | ||
- uses: actions/checkout@v2 | ||
- run: git pull | ||
- run: wkhtmltopdf --enable-local-file-access snapshot.html doc.pdf | ||
- run: | | ||
wget https://raw.githubusercontent.com/Logius-standaarden/Digikoppeling-Algemeen/main/scripts/pdf-name.py | ||
python pdf-name.py | ||
rm pdf-name.py | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: PDF | ||
path: ~/static | ||
key: ${{ github.run_id }} | ||
- name: Gather files | ||
run: | | ||
rm index.html | ||
mv ~/static/snapshot.html index.html | ||
rm -f *.md *.pdf *.js snapshot.html | ||
mkdir ~/content | ||
mv ./* ~/content | ||
git clone https://user:${{ secrets.BEHEER }}@github.com/Logius-standaarden/Publicatie-Preview.git | ||
- name: Commit preview | ||
run: | | ||
cd Publicatie-Preview | ||
rm -f -r ${{ github.event.repository.name }}/${{ github.head_ref }} | ||
mkdir -p ${{ github.event.repository.name }}/${{ github.head_ref }} | ||
mv ~/content/* ${{ github.event.repository.name }}/${{ github.head_ref }} | ||
git add -A | ||
git config user.name "GitHub Action" | ||
git config user.email "api@logius.nl" | ||
git commit -m "new preview build" | ||
git push |
Binary file not shown.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.