From dc24e5480e1ec429e427a230ee685600a34f20bb Mon Sep 17 00:00:00 2001 From: Johann Bernhardt Date: Sat, 20 Nov 2021 18:00:06 +0100 Subject: [PATCH] Remove wrong build script --- .github/scripts/update-version.sh | 10 --- .github/workflows/buildscript-maintenance.yml | 24 ------- .github/workflows/package-release.yml | 71 ------------------- 3 files changed, 105 deletions(-) delete mode 100644 .github/scripts/update-version.sh delete mode 100644 .github/workflows/buildscript-maintenance.yml delete mode 100644 .github/workflows/package-release.yml diff --git a/.github/scripts/update-version.sh b/.github/scripts/update-version.sh deleted file mode 100644 index 6ab1b17..0000000 --- a/.github/scripts/update-version.sh +++ /dev/null @@ -1,10 +0,0 @@ -if [ ! -z $(git diff --name-only HEAD HEAD~1 | grep build.gradle) ]; then - new_version="$(git log -n1 --format=format:"%H")" - sed --in-place "s!^//version:.*!//version: $new_version!g" build.gradle - git add build.gradle - git commit -m "[ci skip] update build script version to $new_version" - git push - echo "Updated buildscript version to $new_version"; -else - echo "Ignored buildscript version update: no changes detected" -fi diff --git a/.github/workflows/buildscript-maintenance.yml b/.github/workflows/buildscript-maintenance.yml deleted file mode 100644 index f5128e3..0000000 --- a/.github/workflows/buildscript-maintenance.yml +++ /dev/null @@ -1,24 +0,0 @@ -# This workflow only meant for the source mod you shouldn't bring it into your own project - -name: Buildscript maintenance - -on: - push: - branches: [ master, main ] - -jobs: - buildscript-maintenance: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - - name: setup git config - run: | - git config user.name "GitHub CI Bot" - git config user.email "<>" - - - name: Ensure build script version is up to date - run: .github/scripts/update-version.sh diff --git a/.github/workflows/package-release.yml b/.github/workflows/package-release.yml deleted file mode 100644 index 363028e..0000000 --- a/.github/workflows/package-release.yml +++ /dev/null @@ -1,71 +0,0 @@ -# This workflow only meant for the source mod you shouldn't bring it into your own project - -name: Release packages - -on: - push: - branches: [ master, main ] - -jobs: - zip-packages: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Zip starter - uses: montudor/action-zip@v1 - with: - args: > - zip -r starter.zip . \ - \ - -x "*.git/*" \ - \ - -x ".github/scripts/update-version.sh" \ - -x ".github/workflows/buildscript-maintenance.yml" \ - -x ".github/workflows/package-release.yml" \ - \ - -x "*docs/*" \ - -x "README.md" \ - -x "LICENSE" \ - \ - -x "starter.zip" \ - -x "migration.zip" - - - name: Publish starter package - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest-stater" - prerelease: true - title: "Latest starter package" - files: "starter.zip" - - - name: Zip migration - uses: montudor/action-zip@v1 - with: - args: > - zip -r migration.zip . \ - \ - -x "*.git/*" \ - \ - -x ".github/scripts/update-version.sh" \ - -x ".github/workflows/buildscript-maintenance.yml" \ - -x ".github/workflows/package-release.yml" \ - \ - -x "*docs/*" \ - -x "*src/*" \ - -x "LICENSE" \ - -x "README.md" \ - \ - -x "starter.zip" \ - -x "migration.zip" - - - name: Publish migration package - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest-migration" - prerelease: true - title: "Latest migration package" - files: "migration.zip"