We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A workflow to publish to hackage.
name: Publish to Hackage on: push: tags: - 'v*' jobs: upload: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Set up cabal uses: haskell/actions/setup@v2 with: ghc-version: '8.10.7' cabal-version: '3.4' - name: Build dependencies run: cabal update && cabal build --only-dependencies - name: Build package run: cabal build - name: Generate sdist run: cabal sdist - name: Upload to Hackage env: HACKAGE_USERNAME: ${{ secrets.HACKAGE_USERNAME }} HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }} run: | cabal upload dist-newstyle/sdist/mono-traversable-<version>.tar.gz # Note: Replace `<version>` with your actual package version or use environment variables. - name: Upload Documentation env: HACKAGE_USERNAME: ${{ secrets.HACKAGE_USERNAME }} HACKAGE_PASSWORD: ${{ secrets.HACKAGE_PASSWORD }} run: | cabal haddock --haddock-for-hackage cabal upload -d dist-newstyle/doc/html/mono-traversable-<version>-docs.tar.gz
#253
The text was updated successfully, but these errors were encountered:
I don't have any Hackage account for automated uploads.
Sorry, something went wrong.
No branches or pull requests
A workflow to publish to hackage.
#253
The text was updated successfully, but these errors were encountered: