Skip to content

Commit

Permalink
When the build fails, continue up to the point of uploading the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
furgo16 authored Oct 14, 2024
1 parent f516bab commit 8577830
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/publish-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,23 @@ jobs:
- name: install snapcraft
run: sudo snap install snapcraft --classic
- name: build snap
continue-on-error: true
run: |
sudo snapcraft --destructive-mode --verbose
sudo rm -rf $HOME/.config/snapcraft
- name: Copy snapcraft logs
continue-on-error: true
run: |
sudo cp -r /root/.local/state/snapcraft/log/ ./
- name: Upload log artifact
continue-on-error: true
uses: actions/upload-artifact@v4
with:
name: snapcraft-log
path: log/*

- name: publish snap
if: github.repository_owner == 'FreeCAD' # Do not run on forks
env:
Expand All @@ -33,13 +47,3 @@ jobs:
with:
name: snap-package
path: ${{ env.snapArtifactPath }}

- name: Copy snapcraft logs
run: |
sudo cp -r /root/.local/state/snapcraft/log/ ./
- name: Upload log artifact
uses: actions/upload-artifact@v4
with:
name: snapcraft-log
path: log/*

0 comments on commit 8577830

Please sign in to comment.