ci(push): only upload artifacts built with go 1.20.12

This commit is contained in:
Matthew Penner 2023-12-19 14:44:57 -07:00
parent d4bfdd4548
commit accc833e87
No known key found for this signature in database

View File

@ -62,14 +62,14 @@ jobs:
- name: Upload Release Artifact - name: Upload Release Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: ${{ github.ref == 'refs/heads/develop' || github.event_name == 'pull_request' }} if: ${{ (github.ref == 'refs/heads/develop' || github.event_name == 'pull_request') && matrix.go == '1.20.12' }}
with: with:
name: wings_linux_${{ matrix.goarch }} name: wings_linux_${{ matrix.goarch }}
path: dist/wings path: dist/wings
- name: Upload Debug Artifact - name: Upload Debug Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
if: ${{ github.ref == 'refs/heads/develop' || github.event_name == 'pull_request' }} if: ${{ (github.ref == 'refs/heads/develop' || github.event_name == 'pull_request') && matrix.go == '1.20.12' }}
with: with:
name: wings_linux_${{ matrix.goarch }}_debug name: wings_linux_${{ matrix.goarch }}_debug
path: dist/wings_debug path: dist/wings_debug