From 764ce428b0fc6a950d31743b83c58d9b4d28074e Mon Sep 17 00:00:00 2001 From: reobf <2215595288@qq.com> Date: Sun, 11 Feb 2024 19:16:58 +0800 Subject: [PATCH] update --- .github/workflows/release-packages.yml | 86 -------------------------- .github/workflows/release-tags.yml | 14 ----- 2 files changed, 100 deletions(-) delete mode 100644 .github/workflows/release-packages.yml delete mode 100644 .github/workflows/release-tags.yml diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml deleted file mode 100644 index 9244f80..0000000 --- a/.github/workflows/release-packages.yml +++ /dev/null @@ -1,86 +0,0 @@ -# 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 latest starter and migration packages - -on: - push: - branches: [ master, main ] - tags: [ ] - -jobs: - zip-and-release-packages: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set release version - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - - name: Prepare release folder - run: | - mkdir packages - - - name: Zip starter - uses: montudor/action-zip@v1 - with: - args: > - zip -r packages/starter.zip . \ - \ - -x "*.git/*" \ - \ - -x ".github/scripts/update_version" \ - -x ".github/workflows/buildscript-maintenance.yml" \ - -x ".github/workflows/release-packages.yml" \ - \ - -x "*docs/*" \ - -x "README.md" \ - -x "LICENSE" \ - -x "gtnhShared/*" \ - \ - -x "packages/" \ - -x "packages/starter.zip" \ - -x "packages/migration.zip" - - - name: Zip migration - uses: montudor/action-zip@v1 - with: - args: > - zip -r packages/migration.zip . \ - \ - -x "*.git/*" \ - \ - -x ".github/scripts/update_version" \ - -x ".github/workflows/buildscript-maintenance.yml" \ - -x ".github/workflows/release-packages.yml" \ - \ - -x "*docs/*" \ - -x "*src/*" \ - -x "LICENSE" \ - -x "README.md" \ - -x "gtnhShared/*" \ - \ - -x "packages/" \ - -x "packages/starter.zip" \ - -x "packages/migration.zip" - - - name: Update latest tag - uses: "marvinpinto/action-automatic-releases@latest" - if: ${{ (github.ref == 'master' || github.ref == 'main') }} - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest-packages" - prerelease: true - title: "Latest starter and migration packages" - files: packages/* - - - name: Release named version - if: ${{ !(github.ref == 'master' || github.ref == 'main') }} - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "${{ env.RELEASE_VERSION }}-packages" - prerelease: false - title: "${{ env.RELEASE_VERSION }} starter and migration packages" - files: packages/* diff --git a/.github/workflows/release-tags.yml b/.github/workflows/release-tags.yml deleted file mode 100644 index f3c3427..0000000 --- a/.github/workflows/release-tags.yml +++ /dev/null @@ -1,14 +0,0 @@ - -name: Release tagged build - -on: - push: - tags: [ ] - -permissions: - contents: write - -jobs: - release-tags: - uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/release-tags.yml@master - secrets: inherit