From f8f47ed6c38517e55fb19d680fab017af4cc7c58 Mon Sep 17 00:00:00 2001 From: Chalito Date: Wed, 20 Aug 2025 17:27:41 -0300 Subject: [PATCH] Remove build workflow Removes the CD workflow to build bitcoinj-thin and push to maven repo on S3, as builds are made reproducible from the reproducible-builds repo and pushed from there so this is no longer needed. --- .github/workflows/build-and-deploy.yml | 63 -------------------------- 1 file changed, 63 deletions(-) delete mode 100644 .github/workflows/build-and-deploy.yml diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml deleted file mode 100644 index 4918d5318..000000000 --- a/.github/workflows/build-and-deploy.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: Build and push to S3 - -# This workflow is to be triggered manually. -on: - workflow_dispatch: -permissions: read-all - -# Declare default permissions as read only. -jobs: - build-and-push: - permissions: - contents: read - id-token: write - environment: bitcoinj-thin-cd - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # V4.2.2 - - - name: Set up JDK 8 - uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # V4.7.1 - with: - distribution: 'temurin' # Or 'zulu', 'adopt', etc., if you prefer - java-version: '8.0.412+8' - - - name: Install required tools - run: | - sudo apt-get update && \ - sudo apt-get install -qq --no-install-recommends strip-nondeterminism - - - name: Reproducible Build with Maven - run: | - mvn clean package -DskipTests && \ - strip-nondeterminism ./target/bitcoinj-thin-* && \ - sha256sum ./target/bitcoinj-thin-* >shasums-1 && \ - rm -f ./target/bitcoinj-thin-* && \ - mvn clean package -DskipTests && \ - strip-nondeterminism ./target/bitcoinj-thin-* && \ - sha256sum ./target/bitcoinj-thin-* >shasums-2 && \ - cmp shasums-1 shasums-2 - - - name: Set up AWS CLI - uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # V4.2.1 - with: - role-to-assume: ${{ secrets.AWS_ROLE_ARN }} - aws-region: 'us-east-1' - - - name: Upload to S3 - run: | - VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) && \ - GROUP_ID="org.bitcoinj" && \ - ARTIFACT_ID="bitcoinj-thin" && \ - cp pom.xml bitcoinj-thin-${VERSION}.pom && \ - cp target/bitcoinj-thin-${VERSION}.jar ./bitcoinj-thin-${VERSION}.jar && \ - aws s3 sync . s3://rsk-repository/co/rsk/bitcoinj/bitcoinj-thin/${VERSION} \ - --exclude "*" \ - --include "bitcoinj-thin-${VERSION}.jar" \ - --include "bitcoinj-thin-${VERSION}.pom" && \ - if [[ "${VERSION}" == *-SNAPSHOT ]]; then \ - echo "${GROUP_ID}${ARTIFACT_ID}${VERSION}${VERSION}${VERSION}$(date +%Y%m%d%H%M%S)" > maven-metadata.xml && \ - aws s3 cp maven-metadata.xml s3://rsk-repository/co/rsk/bitcoinj/bitcoinj-thin/${VERSION}/maven-metadata.xml - fi