mirror of
https://github.com/uprightbass360/AzerothCore-RealmMaster.git
synced 2026-01-13 00:58:34 +00:00
fix: resolve YAML syntax errors in create-release workflow
Replaced heredocs with echo statements to avoid YAML parsing issues.
The YAML parser was interpreting markdown headings and other content
within heredocs as YAML syntax, causing validation errors.
Using grouped echo statements ({ echo ...; } > file) works correctly
with GitHub Actions YAML parser while maintaining variable expansion.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
238
.github/workflows/create-release.yml
vendored
238
.github/workflows/create-release.yml
vendored
@@ -87,54 +87,54 @@ jobs:
|
|||||||
cp -r docs "${PACKAGE_NAME}/docs"
|
cp -r docs "${PACKAGE_NAME}/docs"
|
||||||
|
|
||||||
# Create a quick start guide specific to this release
|
# Create a quick start guide specific to this release
|
||||||
cat > "${PACKAGE_NAME}/QUICKSTART.md" <<EOF
|
{
|
||||||
# Quick Start - AzerothCore RealmMaster ${VERSION}
|
echo "# Quick Start - AzerothCore RealmMaster ${VERSION}"
|
||||||
|
echo ""
|
||||||
## Module Profile: ${PROFILE}
|
echo "## Module Profile: ${PROFILE}"
|
||||||
**${MODULE_COUNT} modules included**
|
echo "${MODULE_COUNT} modules included"
|
||||||
|
echo ""
|
||||||
## Docker Images
|
echo "## Docker Images"
|
||||||
This release uses the following pre-built images:
|
echo "This release uses the following pre-built images:"
|
||||||
- \`\${DOCKERHUB_USERNAME}/azerothcore-realmmaster:authserver-${PROFILE_TAG}-${BUILD_DATE}\`
|
echo "- \`\${DOCKERHUB_USERNAME}/azerothcore-realmmaster:authserver-${PROFILE_TAG}-${BUILD_DATE}\`"
|
||||||
- \`\${DOCKERHUB_USERNAME}/azerothcore-realmmaster:worldserver-${PROFILE_TAG}-${BUILD_DATE}\`
|
echo "- \`\${DOCKERHUB_USERNAME}/azerothcore-realmmaster:worldserver-${PROFILE_TAG}-${BUILD_DATE}\`"
|
||||||
|
echo ""
|
||||||
Or use the latest tags:
|
echo "Or use the latest tags:"
|
||||||
- \`\${DOCKERHUB_USERNAME}/azerothcore-realmmaster:authserver-${PROFILE_TAG}-latest\`
|
echo "- \`\${DOCKERHUB_USERNAME}/azerothcore-realmmaster:authserver-${PROFILE_TAG}-latest\`"
|
||||||
- \`\${DOCKERHUB_USERNAME}/azerothcore-realmmaster:worldserver-${PROFILE_TAG}-latest\`
|
echo "- \`\${DOCKERHUB_USERNAME}/azerothcore-realmmaster:worldserver-${PROFILE_TAG}-latest\`"
|
||||||
|
echo ""
|
||||||
## Installation
|
echo "## Installation"
|
||||||
|
echo ""
|
||||||
1. **Edit .env.prebuilt**:
|
echo "1. **Edit .env.prebuilt**:"
|
||||||
\`\`\`bash
|
echo " \`\`\`bash"
|
||||||
nano .env.prebuilt
|
echo " nano .env.prebuilt"
|
||||||
# Set: DOCKERHUB_USERNAME=uprightbass360
|
echo " # Set: DOCKERHUB_USERNAME=uprightbass360"
|
||||||
\`\`\`
|
echo " \`\`\`"
|
||||||
|
echo ""
|
||||||
2. **Rename to .env**:
|
echo "2. **Rename to .env**:"
|
||||||
\`\`\`bash
|
echo " \`\`\`bash"
|
||||||
mv .env.prebuilt .env
|
echo " mv .env.prebuilt .env"
|
||||||
\`\`\`
|
echo " \`\`\`"
|
||||||
|
echo ""
|
||||||
3. **Deploy**:
|
echo "3. **Deploy**:"
|
||||||
\`\`\`bash
|
echo " \`\`\`bash"
|
||||||
chmod +x deploy.sh status.sh cleanup.sh
|
echo " chmod +x deploy.sh status.sh cleanup.sh"
|
||||||
./deploy.sh
|
echo " ./deploy.sh"
|
||||||
\`\`\`
|
echo " \`\`\`"
|
||||||
|
echo ""
|
||||||
4. **Check status**:
|
echo "4. **Check status**:"
|
||||||
\`\`\`bash
|
echo " \`\`\`bash"
|
||||||
./status.sh
|
echo " ./status.sh"
|
||||||
\`\`\`
|
echo " \`\`\`"
|
||||||
|
echo ""
|
||||||
## Documentation
|
echo "## Documentation"
|
||||||
- [Pre-Built Images Guide](docs/PREBUILT_IMAGES.md)
|
echo "- [Pre-Built Images Guide](docs/PREBUILT_IMAGES.md)"
|
||||||
- [Getting Started](docs/GETTING_STARTED.md)
|
echo "- [Getting Started](docs/GETTING_STARTED.md)"
|
||||||
- [Troubleshooting](docs/TROUBLESHOOTING.md)
|
echo "- [Troubleshooting](docs/TROUBLESHOOTING.md)"
|
||||||
|
echo ""
|
||||||
## Support
|
echo "## Support"
|
||||||
- GitHub Issues: https://github.com/uprightbass360/AzerothCore-RealmMaster/issues
|
echo "- GitHub Issues: https://github.com/uprightbass360/AzerothCore-RealmMaster/issues"
|
||||||
- AzerothCore Discord: https://discord.gg/gkt4y2x
|
echo "- AzerothCore Discord: https://discord.gg/gkt4y2x"
|
||||||
EOF
|
} > "${PACKAGE_NAME}/QUICKSTART.md"
|
||||||
|
|
||||||
# Make scripts executable
|
# Make scripts executable
|
||||||
chmod +x "${PACKAGE_NAME}/deploy.sh"
|
chmod +x "${PACKAGE_NAME}/deploy.sh"
|
||||||
@@ -148,77 +148,77 @@ EOF
|
|||||||
|
|
||||||
- name: Generate release notes
|
- name: Generate release notes
|
||||||
run: |
|
run: |
|
||||||
cat > release_notes.md <<EOF
|
{
|
||||||
# AzerothCore RealmMaster ${VERSION} - ${PROFILE} Profile
|
echo "# AzerothCore RealmMaster ${VERSION} - ${PROFILE} Profile"
|
||||||
|
echo ""
|
||||||
## 🎯 Module Profile: ${PROFILE}
|
echo "## 🎯 Module Profile: ${PROFILE}"
|
||||||
**${MODULE_COUNT} modules included**
|
echo "${MODULE_COUNT} modules included"
|
||||||
|
echo ""
|
||||||
## 📦 Docker Images
|
echo "## 📦 Docker Images"
|
||||||
|
echo ""
|
||||||
Pull these pre-built images from Docker Hub:
|
echo "Pull these pre-built images from Docker Hub:"
|
||||||
|
echo ""
|
||||||
**Date-specific (recommended for production)**:
|
echo "**Date-specific (recommended for production)**:"
|
||||||
\`\`\`bash
|
echo "\`\`\`bash"
|
||||||
docker pull \${DOCKERHUB_USERNAME}/azerothcore-realmmaster:authserver-${PROFILE_TAG}-${BUILD_DATE}
|
echo "docker pull \${DOCKERHUB_USERNAME}/azerothcore-realmmaster:authserver-${PROFILE_TAG}-${BUILD_DATE}"
|
||||||
docker pull \${DOCKERHUB_USERNAME}/azerothcore-realmmaster:worldserver-${PROFILE_TAG}-${BUILD_DATE}
|
echo "docker pull \${DOCKERHUB_USERNAME}/azerothcore-realmmaster:worldserver-${PROFILE_TAG}-${BUILD_DATE}"
|
||||||
\`\`\`
|
echo "\`\`\`"
|
||||||
|
echo ""
|
||||||
**Latest (auto-updated nightly)**:
|
echo "**Latest (auto-updated nightly)**:"
|
||||||
\`\`\`bash
|
echo "\`\`\`bash"
|
||||||
docker pull \${DOCKERHUB_USERNAME}/azerothcore-realmmaster:authserver-${PROFILE_TAG}-latest
|
echo "docker pull \${DOCKERHUB_USERNAME}/azerothcore-realmmaster:authserver-${PROFILE_TAG}-latest"
|
||||||
docker pull \${DOCKERHUB_USERNAME}/azerothcore-realmmaster:worldserver-${PROFILE_TAG}-latest
|
echo "docker pull \${DOCKERHUB_USERNAME}/azerothcore-realmmaster:worldserver-${PROFILE_TAG}-latest"
|
||||||
\`\`\`
|
echo "\`\`\`"
|
||||||
|
echo ""
|
||||||
## 🚀 Quick Start
|
echo "## 🚀 Quick Start"
|
||||||
|
echo ""
|
||||||
\`\`\`bash
|
echo "\`\`\`bash"
|
||||||
# Download and extract
|
echo "# Download and extract"
|
||||||
wget https://github.com/uprightbass360/AzerothCore-RealmMaster/releases/download/${VERSION}/${PACKAGE_NAME}.zip
|
echo "wget https://github.com/uprightbass360/AzerothCore-RealmMaster/releases/download/${VERSION}/${PACKAGE_NAME}.zip"
|
||||||
unzip ${PACKAGE_NAME}.zip
|
echo "unzip ${PACKAGE_NAME}.zip"
|
||||||
cd ${PACKAGE_NAME}
|
echo "cd ${PACKAGE_NAME}"
|
||||||
|
echo ""
|
||||||
# Configure Docker Hub username
|
echo "# Configure Docker Hub username"
|
||||||
nano .env.prebuilt
|
echo "nano .env.prebuilt"
|
||||||
# Set: DOCKERHUB_USERNAME=uprightbass360
|
echo "# Set: DOCKERHUB_USERNAME=uprightbass360"
|
||||||
|
echo ""
|
||||||
# Deploy
|
echo "# Deploy"
|
||||||
mv .env.prebuilt .env
|
echo "mv .env.prebuilt .env"
|
||||||
./deploy.sh
|
echo "./deploy.sh"
|
||||||
\`\`\`
|
echo "\`\`\`"
|
||||||
|
echo ""
|
||||||
Full documentation in \`docs/PREBUILT_IMAGES.md\`
|
echo "Full documentation in \`docs/PREBUILT_IMAGES.md\`"
|
||||||
|
echo ""
|
||||||
## 📋 Included Modules
|
echo "## 📋 Included Modules"
|
||||||
|
echo ""
|
||||||
$(cat modules.txt)
|
cat modules.txt
|
||||||
|
echo ""
|
||||||
## 📊 Build Information
|
echo "## 📊 Build Information"
|
||||||
|
echo ""
|
||||||
- **Built**: ${BUILD_DATE}
|
echo "- **Built**: ${BUILD_DATE}"
|
||||||
- **AzerothCore Commit**: ${ACORE_COMMIT}
|
echo "- **AzerothCore Commit**: ${ACORE_COMMIT}"
|
||||||
- **Source Variant**: playerbots (for MODULE_PLAYERBOTS support)
|
echo "- **Source Variant**: playerbots (for MODULE_PLAYERBOTS support)"
|
||||||
- **Profile**: ${PROFILE}
|
echo "- **Profile**: ${PROFILE}"
|
||||||
- **Module Count**: ${MODULE_COUNT}
|
echo "- **Module Count**: ${MODULE_COUNT}"
|
||||||
|
echo ""
|
||||||
## 📖 Documentation
|
echo "## 📖 Documentation"
|
||||||
|
echo ""
|
||||||
Full documentation available in the \`docs/\` directory of the release package:
|
echo "Full documentation available in the \`docs/\` directory of the release package:"
|
||||||
- [Pre-Built Images Guide](https://github.com/uprightbass360/AzerothCore-RealmMaster/blob/${VERSION}/docs/PREBUILT_IMAGES.md)
|
echo "- [Pre-Built Images Guide](https://github.com/uprightbass360/AzerothCore-RealmMaster/blob/${VERSION}/docs/PREBUILT_IMAGES.md)"
|
||||||
- [Getting Started Guide](https://github.com/uprightbass360/AzerothCore-RealmMaster/blob/${VERSION}/docs/GETTING_STARTED.md)
|
echo "- [Getting Started Guide](https://github.com/uprightbass360/AzerothCore-RealmMaster/blob/${VERSION}/docs/GETTING_STARTED.md)"
|
||||||
- [Module Catalog](https://github.com/uprightbass360/AzerothCore-RealmMaster/blob/${VERSION}/docs/MODULES.md)
|
echo "- [Module Catalog](https://github.com/uprightbass360/AzerothCore-RealmMaster/blob/${VERSION}/docs/MODULES.md)"
|
||||||
- [Troubleshooting](https://github.com/uprightbass360/AzerothCore-RealmMaster/blob/${VERSION}/docs/TROUBLESHOOTING.md)
|
echo "- [Troubleshooting](https://github.com/uprightbass360/AzerothCore-RealmMaster/blob/${VERSION}/docs/TROUBLESHOOTING.md)"
|
||||||
|
echo ""
|
||||||
## 🐛 Known Issues
|
echo "## 🐛 Known Issues"
|
||||||
|
echo ""
|
||||||
None at this time. Report issues at: https://github.com/uprightbass360/AzerothCore-RealmMaster/issues
|
echo "None at this time. Report issues at: https://github.com/uprightbass360/AzerothCore-RealmMaster/issues"
|
||||||
|
echo ""
|
||||||
## 💬 Support
|
echo "## 💬 Support"
|
||||||
|
echo ""
|
||||||
- **GitHub Issues**: https://github.com/uprightbass360/AzerothCore-RealmMaster/issues
|
echo "- **GitHub Issues**: https://github.com/uprightbass360/AzerothCore-RealmMaster/issues"
|
||||||
- **AzerothCore Discord**: https://discord.gg/gkt4y2x
|
echo "- **AzerothCore Discord**: https://discord.gg/gkt4y2x"
|
||||||
- **Documentation**: https://github.com/uprightbass360/AzerothCore-RealmMaster/tree/${VERSION}/docs
|
echo "- **Documentation**: https://github.com/uprightbass360/AzerothCore-RealmMaster/tree/${VERSION}/docs"
|
||||||
EOF
|
} > release_notes.md
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user