GeezerVison is showing github.com — fix: Solve CI publish issue (#157) · stackbuilders/dotenv-hs@c97f941
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +22Lines changed: 22 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# CI Workflows | | 2 | + | | 3 | +## Overview | | 4 | + | | 5 | +- [Build](build.yml) | | 6 | + - Build and test Haskell code | | 7 | +- [Draft](draft.yml) | | 8 | + - Create a GH draft release with a static binary | | 9 | +- [Release](release.yml) | | 10 | + - Upload the package and docs to Hackage (release candidate) | | 11 | + | | 12 | +## Events | | 13 | + | | 14 | +```mermaid | | 15 | +graph LR | | 16 | + event[GH Event]-->|on push|Build | | 17 | + event-->|tag created|Draft | | 18 | + Draft-->|create draft release|End | | 19 | + event-->|release published|Release | | 20 | + Release-->|upload artifacts to Hackage (release candidate)|End | | 21 | + Build-->End | | 22 | +``` |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/publish.yml +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 35 | 35 | run: | | 36 | 36 | SDIST_PATH=$(ls dist-newstyle/sdist/dotenv-*.tar.gz) | 37 | 37 | curl -X POST \ | | 38 | + --fail -i \ | 38 | 39 | -H 'Accept: text/plain' \ | 39 | | - -H "Authorization: X-ApiKey \"$HACKAGE_API_KEY\"" \ | | 40 | + -H "Authorization: X-ApiKey ${HACKAGE_API_KEY}" \ | 40 | 41 | --form "package=@${SDIST_PATH}" \ | 41 | 42 | "https://hackage.haskell.org/packages/candidates" | 42 | 43 |
| | 51 | 52 | VERSION=${TAG_VERSION:1} | 52 | 53 | DOCS_PATH=$(ls dist-newstyle/dotenv-*-docs.tar.gz) | 53 | 54 | curl -X PUT \ | | 55 | + --fail -i \ | 54 | 56 | -H 'Content-Type: application/x-tar' \ | 55 | 57 | -H 'Content-Encoding: gzip' \ | 56 | | - -H "Authorization: X-ApiKey \"$HACKAGE_API_KEY\"" \ | | 58 | + -H "Authorization: X-ApiKey ${HACKAGE_API_KEY}" \ | 57 | 59 | --data-binary "@${DOCS_PATH}" \ | 58 | 60 | "https://hackage.haskell.org/package/dotenv-$VERSION/candidate/docs" |
Collapse file Copy file name to clipboardExpand all lines: CHANGELOG.md +8Lines changed: 8 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | ## MASTER | | 2 | +## Dotenv 0.10.1.0 | | 3 | +### Added | | 4 | +* Short `-x` for `--example` flag | | 5 | + | | 6 | +### Modified | | 7 | +* Fix `union`/`unionBy` bug, refactor .env.example check, and improve error | | 8 | +message (Kudos to @pbrisbin) | | 9 | + | 2 | 10 | ## Dotenv 0.10.0.1 | 3 | 11 | ### Modified | 4 | 12 | * Modify docs. | |
Collapse file Copy file name to clipboardExpand all lines: README.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -[](https://github.com/stackbuilders/dotenv-hs/actions/workflows/build-and-test.yml) [](http://hackage.haskell.org/package/dotenv) | | 1 | +[](https://github.com/stackbuilders/dotenv-hs/actions/workflows/build.yml)[](http://hackage.haskell.org/package/dotenv) | 2 | 2 |
| 3 | 3 | # Dotenv files for Haskell | 4 | 4 |
| @@ -161,7 +161,7 @@ $ echo $FOO | 161 | 161 | This will fail: | 162 | 162 | ```shell | 163 | 163 | $ dotenv -f .env --example .env.example "myprogram --myflag myargument" | 164 | | -> dotenv: Missing env vars! Please, check (this/these) var(s) (is/are) set: BAR | | 164 | +> dotenv: The following variables are present in .env.example, but not set in the current environment, or .env: BAR | 165 | 165 | ``` | 166 | 166 |
| 167 | 167 | This will succeed: | |
Collapse file Copy file name to clipboardExpand all lines: app/Main.hs +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -62,6 +62,7 @@ config = Options | 62 | 62 |
| 63 | 63 | <*> many (strOption ( | 64 | 64 | long "example" | | 65 | + <> short 'x' | 65 | 66 | <> metavar "DOTENV_EXAMPLE" | 66 | 67 | <> help "File to read for needed environmental variables" )) | 67 | 68 |
| |
Collapse file Copy file name to clipboardExpand all lines: dotenv.cabal +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | name: dotenv | 2 | | -version: 0.10.0.1 | | 2 | +version: 0.10.1.0 | 3 | 3 | synopsis: Loads environment variables from dotenv files | 4 | 4 | homepage: https://github.com/stackbuilders/dotenv-hs | 5 | 5 | description: | |
Collapse file Copy file name to clipboardExpand all lines: src/Configuration/Dotenv.hs +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -79,7 +79,7 @@ loadFile config@Config {..} = do | 79 | 79 | else error $ concat | 80 | 80 | [ "The following variables are present in " | 81 | 81 | , showPaths "one of " envExamples | 82 | | - , ", but not set in the current environment, or" | | 82 | + , ", but not set in the current environment, or " | 83 | 83 | , showPaths "any of " envs | 84 | 84 | , ": " | 85 | 85 | , intercalate ", " missingKeys | |
|