Skip to content

Commit bff97cc

Browse files
authored
Merge pull request #12 from geniusyield/5-ci-for-dex-contracts-api-2
CI for dex-contracts-api #5
2 parents f526de0 + 9eb6580 commit bff97cc

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/haskell.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,8 @@ jobs:
105105
# TODO: [CI] Add cabal check #9
106106
#- name: Run checks (cabal)
107107
# run: cabal check
108-
# TODO: [CI] Create source distribution file #11
109-
#- name: Create source distribution file (cabal)
110-
# run: cabal sdist
108+
- name: Create source distribution file (cabal)
109+
run: cabal sdist
111110
- name: Identify version (cabal)
112111
id: get_version
113112
run: |
@@ -121,9 +120,8 @@ jobs:
121120
uses: actions/[email protected]
122121
with:
123122
path: ./dist-newstyle/build/x86_64-linux/ghc-9.2.8/${{env.VERSION}}/doc/html/geniusyield-dex-api/
124-
# TODO: [CI] Create source distribution file #11
125-
#- name: Upload artifacts
126-
# uses: actions/upload-artifact@v3
127-
# with:
128-
# name: source-distribution-file
129-
# path: ./dist-newstyle/sdist/${{env.VERSION}}.tar.gz
123+
- name: Upload artifacts
124+
uses: actions/upload-artifact@v3
125+
with:
126+
name: source-distribution-file
127+
path: ./dist-newstyle/sdist/${{env.VERSION}}.tar.gz

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@ jobs:
5050
--verify-tag \
5151
--draft \
5252
"${SEMANTIC_VERSION}" \
53+
"./artifacts/${{ env.VERSION }}.tar.gz#Source distribution file (tar.gz)" \
5354
"./artifacts/${HADDOCK_FILE}#Haddock (tar)"
5455
echo "::notice::Succesfully created release draft ${SEMANTIC_VERSION} from ${GIT_REVISION}. (Uploaded: ${{ env.VERSION }}.tar.gz)"

0 commit comments

Comments
 (0)