Skip to content

♻️ Try disabling redirection #74

♻️ Try disabling redirection

♻️ Try disabling redirection #74

Workflow file for this run

name: Deploy Astro site
on:
push:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'deploy'
cancel-in-progress: false
env:
BUILD_PATH: '.'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
working-directory: ${{ env.BUILD_PATH }}
- name: Build with Astro
run: pnpm astro build
working-directory: ${{ env.BUILD_PATH }}
- name: Upload artifact
uses: actions/[email protected]
with:
name: dist
path: dist
deploy:
name: Deploy to server
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: KessokuTeaTime/action-kessoku-private-ci@main
with:
auth: ${{ secrets.KTT_API_TOKEN }}
endpoint: ${{ vars.KTT_API_ENDPOINT }}
payload: |
{
"run_id": "${{ github.run_id }}",
"dest": "www"
}