From d59e34205e2710ec8dcdeb95dd6f1bc9036dd928 Mon Sep 17 00:00:00 2001 From: Kyle Van Berendonck Date: Sat, 22 Jan 2022 14:12:08 +1100 Subject: [PATCH] [#57]: Upload artifacts after a CI run (#58) --- .github/workflows/test-macos-latest.yml | 9 +++++++- .github/workflows/test-ubuntu-latest.yml | 9 +++++++- .github/workflows/test-windows-latest.yml | 11 ++++++++-- examples/scotty/LICENSE | 21 +++++++++++++++++++ .../github-webhooks-scotty-example.cabal | 5 +++-- examples/scotty/package.yaml | 2 ++ examples/servant-simple/LICENSE | 21 +++++++++++++++++++ ...thub-webhooks-servant-simple-example.cabal | 5 +++-- examples/servant-simple/package.yaml | 2 ++ examples/servant/LICENSE | 21 +++++++++++++++++++ .../github-webhooks-servant-example.cabal | 9 ++++---- examples/servant/package.yaml | 2 ++ 12 files changed, 105 insertions(+), 12 deletions(-) create mode 100644 examples/scotty/LICENSE create mode 100644 examples/servant-simple/LICENSE create mode 100644 examples/servant/LICENSE diff --git a/.github/workflows/test-macos-latest.yml b/.github/workflows/test-macos-latest.yml index 4f19043..639603f 100644 --- a/.github/workflows/test-macos-latest.yml +++ b/.github/workflows/test-macos-latest.yml @@ -24,4 +24,11 @@ jobs: - env: STACK_YAML: ${{matrix.stack-yaml }} - run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps + run: | + stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps + stack sdist + + - uses: actions/upload-artifact@v2 + with: + name: github-webhooks-macos-${{ matrix.stack-yaml }}-${{ github.sha }} + path: .stack-work/dist/ diff --git a/.github/workflows/test-ubuntu-latest.yml b/.github/workflows/test-ubuntu-latest.yml index 2f81afe..62adb27 100644 --- a/.github/workflows/test-ubuntu-latest.yml +++ b/.github/workflows/test-ubuntu-latest.yml @@ -41,4 +41,11 @@ jobs: - env: STACK_YAML: ${{matrix.stack-yaml }} - run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps + run: | + stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps + stack sdist + + - uses: actions/upload-artifact@v2 + with: + name: github-webhooks-ubuntu-${{ matrix.stack-yaml }}-${{ github.sha }} + path: .stack-work/dist/ diff --git a/.github/workflows/test-windows-latest.yml b/.github/workflows/test-windows-latest.yml index c39f07e..9f7cf49 100644 --- a/.github/workflows/test-windows-latest.yml +++ b/.github/workflows/test-windows-latest.yml @@ -23,5 +23,12 @@ jobs: stack-version: ${{ matrix.stack-version }} - env: - STACK_YAML: ${{matrix.stack-yaml }} - run: stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps + STACK_YAML: ${{ matrix.stack-yaml }} + run: | + stack --skip-ghc-check test --flag github-webhooks:ci --haddock --no-haddock-deps + stack sdist + + - uses: actions/upload-artifact@v2 + with: + name: github-webhooks-windows-${{ matrix.stack-yaml }}-${{ github.sha }} + path: .stack-work/dist/ diff --git a/examples/scotty/LICENSE b/examples/scotty/LICENSE new file mode 100644 index 0000000..0a050e6 --- /dev/null +++ b/examples/scotty/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017-2022 Cuedo Control Engineering (https://cuedo.com.au) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/examples/scotty/github-webhooks-scotty-example.cabal b/examples/scotty/github-webhooks-scotty-example.cabal index 3bbe07a..7b10488 100644 --- a/examples/scotty/github-webhooks-scotty-example.cabal +++ b/examples/scotty/github-webhooks-scotty-example.cabal @@ -3,15 +3,16 @@ cabal-version: 1.12 -- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack --- --- hash: d8428034201293b018c5837284fb6fada822e5cc703563bad60b8d17ba0a5ef9 name: github-webhooks-scotty-example version: 0.0.0 +synopsis: Sample program using scotty and github-webhooks together. +description: Sample program using @scotty@ and @github-webhooks@ together. author: Kyle Van Berendonck maintainer: Kyle Van Berendonck copyright: (c) 2017-2022 Cuedo Control Engineering license: MIT +license-file: LICENSE build-type: Simple executable github-webhooks-scotty-example diff --git a/examples/scotty/package.yaml b/examples/scotty/package.yaml index aa6499b..49f2441 100644 --- a/examples/scotty/package.yaml +++ b/examples/scotty/package.yaml @@ -4,6 +4,8 @@ license: MIT copyright: (c) 2017-2022 Cuedo Control Engineering author: Kyle Van Berendonck maintainer: Kyle Van Berendonck +synopsis: Sample program using scotty and github-webhooks together. +description: Sample program using @scotty@ and @github-webhooks@ together. ghc-options: - -Wall diff --git a/examples/servant-simple/LICENSE b/examples/servant-simple/LICENSE new file mode 100644 index 0000000..0a050e6 --- /dev/null +++ b/examples/servant-simple/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017-2022 Cuedo Control Engineering (https://cuedo.com.au) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/examples/servant-simple/github-webhooks-servant-simple-example.cabal b/examples/servant-simple/github-webhooks-servant-simple-example.cabal index b8adf5f..a497938 100644 --- a/examples/servant-simple/github-webhooks-servant-simple-example.cabal +++ b/examples/servant-simple/github-webhooks-servant-simple-example.cabal @@ -3,15 +3,16 @@ cabal-version: 1.12 -- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack --- --- hash: adf0ce828a20e78e793bb6ca83763a25d3e00c778e5eaf1d6dfc1e722bb699a9 name: github-webhooks-servant-simple-example version: 0.0.0 +synopsis: Simplified sample program using servant and github-webhooks together. +description: Simplified sample program using @servant@ and @github-webhooks@ together. author: Kyle Van Berendonck maintainer: Kyle Van Berendonck copyright: (c) 2017-2022 Cuedo Control Engineering license: MIT +license-file: LICENSE build-type: Simple executable github-webhooks-servant-example diff --git a/examples/servant-simple/package.yaml b/examples/servant-simple/package.yaml index d3a6438..093996c 100644 --- a/examples/servant-simple/package.yaml +++ b/examples/servant-simple/package.yaml @@ -4,6 +4,8 @@ license: MIT copyright: (c) 2017-2022 Cuedo Control Engineering author: Kyle Van Berendonck maintainer: Kyle Van Berendonck +synopsis: Simplified sample program using servant and github-webhooks together. +description: Simplified sample program using @servant@ and @github-webhooks@ together. ghc-options: - -Wall diff --git a/examples/servant/LICENSE b/examples/servant/LICENSE new file mode 100644 index 0000000..0a050e6 --- /dev/null +++ b/examples/servant/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017-2022 Cuedo Control Engineering (https://cuedo.com.au) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/examples/servant/github-webhooks-servant-example.cabal b/examples/servant/github-webhooks-servant-example.cabal index e99afa3..e832b98 100644 --- a/examples/servant/github-webhooks-servant-example.cabal +++ b/examples/servant/github-webhooks-servant-example.cabal @@ -3,19 +3,22 @@ cabal-version: 1.12 -- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack --- --- hash: 0f8ba64f2981c4f188157ff6f1d932983a6f9702a1d20beb163c0a1780fc6eed name: github-webhooks-servant-example version: 0.0.0 +synopsis: Sample program using servant and github-webhooks together. +description: Sample program using @servant@ and @github-webhooks@ together. author: Kyle Van Berendonck maintainer: Kyle Van Berendonck copyright: (c) 2017-2022 Cuedo Control Engineering license: MIT +license-file: LICENSE build-type: Simple executable github-webhooks-servant-example main-is: Main.hs + other-modules: + Paths_github_webhooks_servant_example hs-source-dirs: src default-extensions: @@ -36,6 +39,4 @@ executable github-webhooks-servant-example , servant-server , wai , warp - other-modules: - Paths_github_webhooks_servant_example default-language: Haskell2010 diff --git a/examples/servant/package.yaml b/examples/servant/package.yaml index 22057de..0fc01e7 100644 --- a/examples/servant/package.yaml +++ b/examples/servant/package.yaml @@ -4,6 +4,8 @@ license: MIT copyright: (c) 2017-2022 Cuedo Control Engineering author: Kyle Van Berendonck maintainer: Kyle Van Berendonck +synopsis: Sample program using servant and github-webhooks together. +description: Sample program using @servant@ and @github-webhooks@ together. ghc-options: - -Wall