Skip to content

ci: disable sandbox for chrome #16

ci: disable sandbox for chrome

ci: disable sandbox for chrome #16

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
pages: write
id-token: write
pull-requests: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: quarto-dev/quarto-actions/setup@v2
with:
version: pre-release
tinytex: false
- name: Render Quarto Project
shell: bash
run: |
quarto add mcanouil/quarto-iconify --no-prompt
sed 's|_extensions/mcanouil/coeos|_extensions/coeos|g' template.qmd > index.qmd
quarto render index.qmd --output-dir _site
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: '_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Take Screenshot
shell: bash
run: |
npx -y decktape reveal \
--chrome-arg=--no-sandbox \
--chrome-arg=--disable-setuid-sandbox \
--screenshots \
--screenshots-format png \
--screenshots-directory . \
--size "1920x1080" \
--slides 1 \
_site/index.html _site/index.pdf
- name: Update Screenshot
shell: bash
run: |
mv _site/index_1_1920x1080.png .github/template.png
BRANCH=ci/update-thumbs
if git show-ref --quiet refs/heads/${BRANCH}; then
echo "Branch ${BRANCH} already exists."
git branch -D "${BRANCH}"
git push origin --delete "${BRANCH}"
fi
git checkout -b "${BRANCH}"
git config --local user.name github-actions[bot]
git config --local user.email 41898282+github-actions[bot]@users.noreply.github.com
git add .github/template.png
git commit -m "ci: update thumbs"
git push --force origin ${BRANCH}
gh pr create --fill-first --base "main" --head "${BRANCH}"
sleep 15
gh pr merge --auto --squash --delete-branch