Skip to content

Commit d59e342

Browse files
authored
[#57]: Upload artifacts after a CI run (#58)
1 parent 7181552 commit d59e342

File tree

12 files changed

+105
-12
lines changed

12 files changed

+105
-12
lines changed

.github/workflows/test-macos-latest.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,11 @@ jobs:
2424

2525
- env:
2626
STACK_YAML: ${{matrix.stack-yaml }}
27-
run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
27+
run: |
28+
stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
29+
stack sdist
30+
31+
- uses: actions/upload-artifact@v2
32+
with:
33+
name: github-webhooks-macos-${{ matrix.stack-yaml }}-${{ github.sha }}
34+
path: .stack-work/dist/

.github/workflows/test-ubuntu-latest.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@ jobs:
4141

4242
- env:
4343
STACK_YAML: ${{matrix.stack-yaml }}
44-
run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
44+
run: |
45+
stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
46+
stack sdist
47+
48+
- uses: actions/upload-artifact@v2
49+
with:
50+
name: github-webhooks-ubuntu-${{ matrix.stack-yaml }}-${{ github.sha }}
51+
path: .stack-work/dist/

.github/workflows/test-windows-latest.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,12 @@ jobs:
2323
stack-version: ${{ matrix.stack-version }}
2424

2525
- env:
26-
STACK_YAML: ${{matrix.stack-yaml }}
27-
run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
26+
STACK_YAML: ${{ matrix.stack-yaml }}
27+
run: |
28+
stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps
29+
stack sdist
30+
31+
- uses: actions/upload-artifact@v2
32+
with:
33+
name: github-webhooks-windows-${{ matrix.stack-yaml }}-${{ github.sha }}
34+
path: .stack-work/dist/

examples/scotty/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017-2022 Cuedo Control Engineering (https://cuedo.com.au)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

examples/scotty/github-webhooks-scotty-example.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ cabal-version: 1.12
33
-- This file has been generated from package.yaml by hpack version 0.34.4.
44
--
55
-- see: https://github.com/sol/hpack
6-
--
7-
-- hash: d8428034201293b018c5837284fb6fada822e5cc703563bad60b8d17ba0a5ef9
86

97
name: github-webhooks-scotty-example
108
version: 0.0.0
9+
synopsis: Sample program using scotty and github-webhooks together.
10+
description: Sample program using @scotty@ and @github-webhooks@ together.
1111
author: Kyle Van Berendonck <[email protected]>
1212
maintainer: Kyle Van Berendonck <[email protected]>
1313
copyright: (c) 2017-2022 Cuedo Control Engineering
1414
license: MIT
15+
license-file: LICENSE
1516
build-type: Simple
1617

1718
executable github-webhooks-scotty-example

examples/scotty/package.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ license: MIT
44
copyright: (c) 2017-2022 Cuedo Control Engineering
55
author: Kyle Van Berendonck <[email protected]>
66
maintainer: Kyle Van Berendonck <[email protected]>
7+
synopsis: Sample program using scotty and github-webhooks together.
8+
description: Sample program using @scotty@ and @github-webhooks@ together.
79

810
ghc-options:
911
- -Wall

examples/servant-simple/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017-2022 Cuedo Control Engineering (https://cuedo.com.au)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

examples/servant-simple/github-webhooks-servant-simple-example.cabal

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ cabal-version: 1.12
33
-- This file has been generated from package.yaml by hpack version 0.34.4.
44
--
55
-- see: https://github.com/sol/hpack
6-
--
7-
-- hash: adf0ce828a20e78e793bb6ca83763a25d3e00c778e5eaf1d6dfc1e722bb699a9
86

97
name: github-webhooks-servant-simple-example
108
version: 0.0.0
9+
synopsis: Simplified sample program using servant and github-webhooks together.
10+
description: Simplified sample program using @servant@ and @github-webhooks@ together.
1111
author: Kyle Van Berendonck <[email protected]>
1212
maintainer: Kyle Van Berendonck <[email protected]>
1313
copyright: (c) 2017-2022 Cuedo Control Engineering
1414
license: MIT
15+
license-file: LICENSE
1516
build-type: Simple
1617

1718
executable github-webhooks-servant-example

examples/servant-simple/package.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ license: MIT
44
copyright: (c) 2017-2022 Cuedo Control Engineering
55
author: Kyle Van Berendonck <[email protected]>
66
maintainer: Kyle Van Berendonck <[email protected]>
7+
synopsis: Simplified sample program using servant and github-webhooks together.
8+
description: Simplified sample program using @servant@ and @github-webhooks@ together.
79

810
ghc-options:
911
- -Wall

examples/servant/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2017-2022 Cuedo Control Engineering (https://cuedo.com.au)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)