Skip to content

build(deps): bump dagger/dagger-for-github from 5.6.0 to 5.11.0 (#1081) #773

build(deps): bump dagger/dagger-for-github from 5.6.0 to 5.11.0 (#1081)

build(deps): bump dagger/dagger-for-github from 5.6.0 to 5.11.0 (#1081) #773

Workflow file for this run

# .github/workflows/preview.yml
name: Deploy Github Pages
on:
push:
branches:
- main
pull_request:
types:
- opened
- reopened
- synchronize
- closed
permissions:
contents: write
pull-requests: write
concurrency: ci-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: 'docs'
- name: Install and Build
working-directory: docs
env:
# Main: https://tanka.dev/
# PRs: https://tanka.dev/pr-preview/pr-{number}/
PATH_PREFIX: "${{ github.event_name == 'pull_request' && format('/pr-preview/pr-{0}/', github.event.number) || '' }}"
run: |
pnpm install
pnpm build
if [ -d "./public" ]; then
touch ./public/.nojekyll
fi
if [ -d "./dist" ]; then
touch ./dist/.nojekyll
fi
- name: Deploy main
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
clean-exclude: pr-preview/
folder: ./docs/dist/
- name: Deploy preview
if: github.event_name == 'pull_request'
uses: rossjrw/pr-preview-action@v1
with:
deploy-repository: ${{ github.event.pull_request.head.repo.full_name }}
source-dir: ./docs/dist/