Skip to content

Commit

Permalink
Attempt to make the release build work (removing even more stuff from…
Browse files Browse the repository at this point in the history
… the runner)
  • Loading branch information
Willena committed Nov 18, 2023
1 parent 1a8bf0b commit 1d4bbfa
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: build
on:
workflow_dispatch:
push:
branches:
- bugfix/release-ci
tags:
- '*.*.*'

Expand All @@ -12,9 +14,21 @@ jobs:
name: Build natives libraries
runs-on: ubuntu-20.04
steps:
- name: Make space
run: sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
- uses: jlumbroso/free-disk-space@main
name: Free Disk Space (Ubuntu)
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -55,18 +69,18 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
if: startsWith(github.ref, 'refs/tags/')
run: make deploy
- name: Deploy Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: "SQLite-jdbc-${{ env.artifactVersion }}"
generate_release_notes: true
files: |
./sqlite-natives-${{ env.artifactVersion }}.zip
./target/sqlite-jdbc-${{ env.artifactVersion }}.jar
./target/sqlite-jdbc-${{ env.artifactVersion }}-javadoc.jar
./target/sqlite-jdbc-${{ env.artifactVersion }}-sources.jar
./target/sqlite-jdbc-${{ env.artifactVersion }}.jar.asc
./target/sqlite-jdbc-${{ env.artifactVersion }}-javadoc.jar.asc
./target/sqlite-jdbc-${{ env.artifactVersion }}-sources.jar.asc
# - name: Deploy Release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# name: "SQLite-jdbc-${{ env.artifactVersion }}"
# generate_release_notes: true
# files: |
# ./sqlite-natives-${{ env.artifactVersion }}.zip
# ./target/sqlite-jdbc-${{ env.artifactVersion }}.jar
# ./target/sqlite-jdbc-${{ env.artifactVersion }}-javadoc.jar
# ./target/sqlite-jdbc-${{ env.artifactVersion }}-sources.jar
# ./target/sqlite-jdbc-${{ env.artifactVersion }}.jar.asc
# ./target/sqlite-jdbc-${{ env.artifactVersion }}-javadoc.jar.asc
# ./target/sqlite-jdbc-${{ env.artifactVersion }}-sources.jar.asc

0 comments on commit 1d4bbfa

Please sign in to comment.