All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
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: patch js path
|
|
run: |
|
|
find dist -type f -name "*.html" -exec sed -i 's|/js/|/qrh/js/|g' {} +
|
|
find dist -type f -name "*.html" -exec sed -i 's|/data\.js|/qrh/data.js|g' {} +
|
|
- 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 }}." |