fix: Rename shared HttpCompatApi.scala to fix release build (#450) #3
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release Scala Native | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| workflow_dispatch: | |
| jobs: | |
| publish_native: | |
| name: Publish Scala Native | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| # Fetch all tags so that sbt-dynver can find the previous release version | |
| fetch-depth: 0 | |
| - run: git fetch --tags -f | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '23' | |
| cache: sbt | |
| - name: Install native dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev | |
| - name: Setup GPG | |
| env: | |
| PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
| run: echo $PGP_SECRET | base64 --decode | gpg --import --batch --yes | |
| - name: Build for Scala Native | |
| env: | |
| PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
| run: ./sbt publishNativeSigned | |
| - name: Release to Sonatype | |
| env: | |
| SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}' | |
| SONATYPE_PASSWORD: '${{ secrets.SONATYPE_PASS }}' | |
| run: ./sbt sonaRelease |