Skip to content

[automated] Debian Bookworm repo updated #91

[automated] Debian Bookworm repo updated

[automated] Debian Bookworm repo updated #91

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
paths:
- _site/**
- repo/**
- .github/workflows/gh-pages.yml
workflow_dispatch:
jobs:
deploy-gh-pages:
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v3
with:
lfs: true
sparse-checkout: |
repo/
_site/
ssh-key: ${{ secrets.DEPLOY_SSH_KEY }}
- name: Create artifact
run: |
tar --dereference --hard-dereference \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git --exclude=.github \
--directory=${{ github.workspace }}/repo . \
--directory=${{ github.workspace }}/_site .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
retention-days: 1
if-no-files-found: error
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
with:
artifact_name: github-pages