Skip to content

Commit

Permalink
🚀 ci: Update release workflow
Browse files Browse the repository at this point in the history
🔧 Workflow Improvements:
updated the release workflow to include additional steps
enhanced error handling for improved reliability

Updated the CI/CD release workflow with improvements and enhancements.
  • Loading branch information
Arakiss committed Oct 7, 2024
1 parent a7ba2de commit 1cc9f32
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,24 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Wait for PyPI to process the upload
- name: Wait and verify package installation
run: |
echo "Waiting for PyPI to process the upload..."
sleep 300
- name: Get version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Install and verify package
run: |
python -m venv test_env
source test_env/bin/activate
pip install --upgrade pip
pip install gitmuse==$VERSION --no-cache-dir --verbose
gitmuse --version
for i in {1..10}; do
if pip install gitmuse==${GITHUB_REF#refs/tags/v} --no-cache-dir; then
echo "Package installed successfully"
gitmuse --version
exit 0
fi
echo "Attempt $i failed, waiting 30 seconds..."
sleep 30
done
echo "Error: Could not install package after 10 attempts"
exit 1
- name: Debug PyPI package info
if: failure()
run: |
pip install yolk3k
yolk -V gitmuse
yolk -F gitmuse
pip install gitmuse==$VERSION --no-cache-dir --verbose
pip install gitmuse=${GITHUB_REF#refs/tags/v} --no-cache-dir --verbose

0 comments on commit 1cc9f32

Please sign in to comment.