Files
hoelee-blog/.gitea/workflows/deploy.yml
T
hoelee 9fafabecf2
Deploy / build (push) Failing after 2s
debug: check GITHUB_TOKEN injection
2026-09-06 05:00:37 +08:00

27 lines
664 B
YAML

name: Deploy
on:
push:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Debug env
run: |
echo "GITHUB_TOKEN length: ${#GITHUB_TOKEN}"
echo "GITHUB_SHA: ${GITHUB_SHA:-EMPTY}"
echo "GITHUB_SERVER_URL: ${GITHUB_SERVER_URL:-EMPTY}"
echo "GITHUB_REPOSITORY: ${GITHUB_REPOSITORY:-EMPTY}"
env | grep -i github | sort
- name: Checkout
run: |
git config --global --add safe.directory '*'
git clone --depth 1 "https://x-access-token:${GITHUB_TOKEN}@git.hoelee.com/hoelee/hoelee-blog.git" .
ls -la