Files
qrhs/.gitea/workflows/demo.yaml
flt6 7d70e994f9
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 7s
拆分尾图
2026-04-24 09:30:57 +08:00

27 lines
846 B
YAML

name: Gitea Actions Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
jobs:
Explore-Gitea-Actions:
runs-on: ubuntu
steps:
- name: Check out repository code
uses: https://gitee.com/mirror-actions/checkout@v4
- run: cd ${{ gitea.workspace }}
- name: Insert post image
run: |
set -euo pipefail
post_content="$(cat post.html)"
find . -type f -name "*.md" -print0 | while IFS= read -r -d '' file; do
{
printf '\n'
printf '%s\n' "$post_content"
} >> "$file"
done
- run: npx refs-cli
- name: copy exports to www
run: |
rm -rf /var/www/qrh
mv ${{ gitea.workspace }}/dist /var/www/qrh
- run: echo "🍏 This job's status is ${{ job.status }}."