GeezerVison is showing github.com — fix GitHub Actions release workflow to collect artifacts from all pla… · codinit-dev/codinit-dev@b7139ef
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: .github/workflows/electron.yml +32-5Lines changed: 32 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
83 | 83 | fi |
84 | 84 | shell: bash |
85 | 85 |
|
| 86 | + # Upload artifacts from this platform |
| 87 | + - name: Upload build artifacts |
| 88 | + uses: actions/upload-artifact@v4 |
| 89 | + with: |
| 90 | + name: dist-${{ matrix.os }} |
| 91 | + path: | |
| 92 | + dist/*.exe |
| 93 | + dist/*.dmg |
| 94 | + dist/*.deb |
| 95 | + dist/*.AppImage |
| 96 | + dist/*.zip |
| 97 | + retention-days: 1 |
| 98 | + if-no-files-found: warn |
| 99 | + |
| 100 | + release: |
| 101 | + needs: build |
| 102 | + runs-on: ubuntu-latest |
| 103 | + if: github.event_name == 'workflow_dispatch' || github.ref_type == 'tag' || github.ref == 'refs/heads/electron' |
| 104 | + |
| 105 | + steps: |
| 106 | + - name: Download all artifacts |
| 107 | + uses: actions/download-artifact@v4 |
| 108 | + with: |
| 109 | + path: dist-combined |
| 110 | + merge-multiple: true |
| 111 | + |
86 | 112 | # Create Release |
87 | 113 | - name: Create Release |
88 | 114 | uses: softprops/action-gh-release@v2 |
@@ -94,10 +120,11 @@ jobs: |
94 | 120 | # For tag pushes, name the release as "Release <tagname>", otherwise "Electron Release". |
95 | 121 | name: ${{ (github.event_name == 'push' && github.ref_type == 'tag') && format('Release {0}', github.ref_name) || 'Electron Release' }} |
96 | 122 | files: | |
97 | | - dist/*.exe |
98 | | - dist/*.dmg |
99 | | - dist/*.deb |
100 | | - dist/*.AppImage |
101 | | - dist/*.zip |
| 123 | + dist-combined/*.exe |
| 124 | + dist-combined/*.dmg |
| 125 | + dist-combined/*.deb |
| 126 | + dist-combined/*.AppImage |
| 127 | + dist-combined/*.zip |
| 128 | + overwrite_files: true |
102 | 129 | env: |
103 | 130 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |