From bc2aa9262540ef8e99a657f6693620e720d48464 Mon Sep 17 00:00:00 2001 From: averen Date: Tue, 10 Sep 2024 15:58:53 -0600 Subject: [PATCH] ci: update github workflow we aren't going to deploy using github anymore --- .github/workflows/build.yml | 17 +++++++++-------- .github/workflows/deploy-production.yml | 24 ------------------------ .github/workflows/main.yml | 9 +++++++++ 3 files changed, 18 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/deploy-production.yml create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa1f4bd3..2f7bda5a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,16 +5,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - name: Checkout sources + uses: actions/checkout@v4 + - name: Setup Java + uses: actions/setup-java@v4 with: distribution: temurin - java-version: 17 - - name: Compile the source code - uses: gradle/gradle-build-action@v2 - with: - gradle-version: current - arguments: build + java-version: 21 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Build with Gradle + run: ./gradlew build - name: Upload build artifacts uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml deleted file mode 100644 index 4bc0c517..00000000 --- a/.github/workflows/deploy-production.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Deploy to production -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - build: - uses: sandrabot/sandra/.github/workflows/build.yml@main - - deploy-production: - runs-on: ubuntu-latest - environment: production - concurrency: production - needs: build - steps: - - name: Invoke deployment webhook - uses: distributhor/workflow-webhook@v3 - env: - webhook_type: 'form-urlencoded' - webhook_url: ${{ secrets.DEPLOY_WEBHOOK_URL }} - webhook_secret: ${{ secrets.DEPLOY_WEBHOOK_SECRET }} - data: 'runId=${{ github.run_id }}' diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..6eb4cbb0 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,9 @@ +name: Build changes on main +on: + push: + branches: + - main + +jobs: + build: + uses: sandrabot/sandra/.github/workflows/build.yml@main