Skip to content

Commit 6442a3c

Browse files
committed
Only upload-artifact once
1 parent 01d00ac commit 6442a3c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- { os: ubuntu-latest, ghc: 8.10.7, cabal: 3.8.1.0 }
2020
- { os: ubuntu-latest, ghc: 9.0.2, cabal: 3.8.1.0 }
2121
- { os: ubuntu-latest, ghc: 9.2.4, cabal: 3.8.1.0 }
22-
- { os: ubuntu-latest, ghc: 9.4.3, cabal: 3.8.1.0 }
22+
- { os: ubuntu-latest, ghc: 9.4.3, cabal: 3.8.1.0, upload-sdist: true }
2323
# TODO: Unpin cabal from 3.12.10 after https://github.com/haskell/cabal/issues/10718 is fixed.
2424
- { os: ubuntu-latest, ghc: latest, cabal: 3.12.1.0, cabal-package-flags: +os-string, ghc-flags: -Werror=deprecations }
2525
- { os: windows-latest, stack: lts-15.3, stack-extra-deps: "bytestring-0.11.3.0, file-io-0.1.4, filepath-1.4.100.0, time-1.9.3, Win32-2.14.1.0", overrides: "before_prepare() { sed -i.bak -e /CreateSymbolicLinkW/d -e /GetFinalPathNameByHandleW/d configure.ac; }" }
@@ -55,9 +55,8 @@ jobs:
5555
- uses: actions/checkout@v3
5656
- run: tools/testscript prepare
5757
- run: tools/testscript build
58-
- if: matrix.cabal
58+
- if: matrix.upload-sdist
5959
uses: actions/upload-artifact@v4
6060
with:
6161
name: sdist
6262
path: dist-newstyle/sdist/*-*.tar.gz
63-
overwrite: true

0 commit comments

Comments
 (0)