Pass sdist output to the upload command

This commit is contained in:
Eugen Wissner 2024-07-25 12:35:28 +02:00
parent 1c4584abdd
commit 9b11300d23
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
3 changed files with 9 additions and 31 deletions

3
.gitea/deploy.awk Normal file
View File

@ -0,0 +1,3 @@
END {
system("cabal upload --username belka --password "ENVIRON["HACKAGE_PASSWORD"]" "$0)
}

View File

@ -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

View File

@ -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}