Skip to content

Fix tag pipeline failures: resolve YAML syntax errors and missing build targets#83

Merged
dogo merged 3 commits into
masterfrom
copilot/fix-b76dd864-c635-407a-bae1-61f74485f9f9
Aug 30, 2025
Merged

Fix tag pipeline failures: resolve YAML syntax errors and missing build targets#83
dogo merged 3 commits into
masterfrom
copilot/fix-b76dd864-c635-407a-bae1-61f74485f9f9

Conversation

Copilot AI commented Aug 30, 2025

Copy link
Copy Markdown
Contributor

This PR fixes the GitHub Actions pipeline that runs when new tags are pushed. The pipeline was failing due to several issues that prevented proper release builds and documentation deployment.

Issues Fixed

1. Missing release Target

The workflow was calling make release but no such target existed in the Makefile. Added a release target that properly calls the existing release.sh script:

release: lib
	./release.sh

2. Invalid YAML Syntax

The workflow used YAML anchors incorrectly, which caused syntax errors:

# Before (invalid)
- *setup_pspdev
- &publish_docs

# After (valid)
- name: Setup PSPDEV Environment
  run: |
    # Proper inline steps

3. Incorrect Directory References

The workflow tried to compress files from a release/ directory, but the release.sh script actually creates files in Distrib/:

# Fixed compression step
tar -czf dist/oslib-release-${GITHUB_REF##*/}.tar.gz Distrib/

4. GitHub Pages Authentication Failure

The ghpages target was using SSH authentication which doesn't work in GitHub Actions. Updated to use HTTPS with the GitHub token:

git remote add remote https://x-access-token:${GITHUB_TOKEN}@github.com/dogo/oslib.git

5. Build Artifacts Management

Added Distrib/ and OSLib.zip to .gitignore to prevent build artifacts from being committed to the repository.

Testing

  • ✅ Validated YAML syntax with python -c "import yaml; yaml.safe_load(open('.github/workflows/Build.yml'))"
  • ✅ Verified release.sh script creates files in expected Distrib/ directory
  • ✅ Confirmed make release target now works correctly

The tag pipeline should now successfully build releases and deploy documentation when new tags are pushed.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits August 30, 2025 09:39
…rrect directory paths

Co-authored-by: dogo <1487375+dogo@users.noreply.github.com>
Co-authored-by: dogo <1487375+dogo@users.noreply.github.com>
Copilot AI changed the title [WIP] dei push em uma nova tag, meu pipeline relacionado a novas tags nao funcionou Fix tag pipeline failures: resolve YAML syntax errors and missing build targets Aug 30, 2025
Copilot AI requested a review from dogo August 30, 2025 09:42
@dogo dogo marked this pull request as ready for review August 30, 2025 10:07
@dogo dogo merged commit c79374f into master Aug 30, 2025
8 checks passed
@dogo dogo deleted the copilot/fix-b76dd864-c635-407a-bae1-61f74485f9f9 branch August 30, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants