forked from OSS/graphql
Pass sdist output to the upload command
This commit is contained in:
parent
1c4584abdd
commit
9b11300d23
.gitea
3
.gitea/deploy.awk
Normal file
3
.gitea/deploy.awk
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
END {
|
||||||
|
system("cabal upload --username belka --password "ENVIRON["HACKAGE_PASSWORD"]" "$0)
|
||||||
|
}
|
@ -9,28 +9,14 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
audit:
|
audit:
|
||||||
runs-on: haskell
|
runs-on: buildenv
|
||||||
steps:
|
steps:
|
||||||
- name: Set up environment
|
|
||||||
run: |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get upgrade -y
|
|
||||||
apt-get install -y nodejs pkg-config
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- run: hlint -- src tests
|
||||||
run: |
|
|
||||||
cabal update
|
|
||||||
cabal install hlint "--constraint=hlint ==3.8"
|
|
||||||
- run: cabal exec hlint -- src tests
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
runs-on: haskell
|
runs-on: buildenv
|
||||||
steps:
|
steps:
|
||||||
- name: Set up environment
|
|
||||||
run: |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get upgrade -y
|
|
||||||
apt-get install -y nodejs pkg-config
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cabal update
|
run: cabal update
|
||||||
@ -39,13 +25,8 @@ jobs:
|
|||||||
- run: cabal test --test-show-details=streaming
|
- run: cabal test --test-show-details=streaming
|
||||||
|
|
||||||
doc:
|
doc:
|
||||||
runs-on: haskell
|
runs-on: buildenv
|
||||||
steps:
|
steps:
|
||||||
- name: Set up environment
|
|
||||||
run: |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get upgrade -y
|
|
||||||
apt-get install -y nodejs pkg-config
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: cabal update
|
run: cabal update
|
||||||
|
@ -7,17 +7,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: haskell
|
runs-on: buildenv
|
||||||
steps:
|
steps:
|
||||||
- name: Set up environment
|
|
||||||
run: |
|
|
||||||
apt-get update -y
|
|
||||||
apt-get upgrade -y
|
|
||||||
apt-get install -y nodejs pkg-config
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Upload a candidate
|
- name: Upload a candidate
|
||||||
env:
|
env:
|
||||||
HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }}
|
HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }}
|
||||||
run: |
|
run: |
|
||||||
cabal sdist
|
cabal sdist | awk -f .gitea/deploy.awk
|
||||||
cabal upload --username belka --password ${HACKAGE_PASSWORD}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user