From 2e506d81df666e2e56598ac6a8a3e0a8314e675c Mon Sep 17 00:00:00 2001 From: Paul Schifferer Date: Thu, 28 Dec 2023 18:53:44 -0800 Subject: [PATCH] Remove workflows from `develop` branch. --- .github/workflows/ci-build.yml | 57 ---------------------- .github/workflows/codeql-analysis.yml | 70 --------------------------- .github/workflows/release.yml | 48 ------------------ 3 files changed, 175 deletions(-) delete mode 100644 .github/workflows/ci-build.yml delete mode 100644 .github/workflows/codeql-analysis.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml deleted file mode 100644 index bee2bbcb..00000000 --- a/.github/workflows/ci-build.yml +++ /dev/null @@ -1,57 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle - -name: CI - -on: - push: - branches: [ develop ] - paths: - - 'src/**' - - 'test/**' - - build.gradle - - gradle.properties - pull_request: - branches: [ develop ] - paths: - - 'src/**' - - 'test/**' - - build.gradle - - gradle.properties - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v2 - with: - java-version: '17' - distribution: 'temurin' - - name: Build with Gradle - uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 - with: - arguments: build - - id: tag-version - name: Create tag - uses: SOLIDSoftworks/semver-tags@1.0.1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} - tag-prefix: '' - default-version: '0.0.1' - prerelease: 'alpha' - - name: Commit version file - run: | - git config --global user.email "ci@sweetrpg.com" - git config --global user.name "SweetRPG CI" - echo "${{ steps.tag-version.outputs.semantic-version }}" > .VERSION - git add .VERSION - git commit -m "Update .VERSION" - git push origin diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index d77df944..00000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,70 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ develop ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ develop ] - schedule: - - cron: '17 11 * * 3' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'java' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 3de9d52a..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,48 +0,0 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. -# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle - -name: Release - -on: - push: - branches: [ master ] - paths: - - 'src/**' - - 'test/**' - - build.gradle - - gradle.properties - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Set up JDK 17 - uses: actions/setup-java@v2 - with: - java-version: '17' - distribution: 'temurin' - - name: Build with Gradle - uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 - env: - CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }} - with: - arguments: curseforge - - name: Commit hash file - run: | - git config --global user.email "ci@sweetrpg.com" - git config --global user.name "SweetRPG CI" - echo "${{ github.sha }}" > .RELEASE_HASH - git add .RELEASE_HASH - git commit -m "Update .RELEASE_HASH" - version=$(cat .VERSION) - git tag "release-${version}" - git push origin --tags