diff --git a/.github/workflows/release-packages-latest.yml b/.github/workflows/release-packages-latest.yml deleted file mode 100644 index bd553e5..0000000 --- a/.github/workflows/release-packages-latest.yml +++ /dev/null @@ -1,72 +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 ] - -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.sh" \ - -x ".github/workflows/buildscript-maintenance.yml" \ - -x ".github/workflows/release-packages-latest.yml" \ - -x ".github/workflows/release-packages-tags.yml" \ - \ - -x "*docs/*" \ - -x "README.md" \ - -x "LICENSE" \ - \ - -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.sh" \ - -x ".github/workflows/buildscript-maintenance.yml" \ - -x ".github/workflows/release-packages-latest.yml" \ - -x ".github/workflows/release-packages-tags.yml" \ - \ - -x "*docs/*" \ - -x "*src/*" \ - -x "LICENSE" \ - -x "README.md" \ - \ - -x "packages/starter.zip" \ - -x "packages/migration.zip" - - - name: Update latest tag - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest-packages" - prerelease: false - title: "Latest starter and migration packages" - files: packages/* diff --git a/.github/workflows/release-packages-tags.yml b/.github/workflows/release-packages-tags.yml deleted file mode 100644 index 1bd8a6a..0000000 --- a/.github/workflows/release-packages-tags.yml +++ /dev/null @@ -1,73 +0,0 @@ -# This workflow only meant for the source mod you shouldn't bring it into your own project - -name: Release starter and migration packages - -on: - push: - 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.sh" \ - -x ".github/workflows/buildscript-maintenance.yml" \ - -x ".github/workflows/release-packages-latest.yml" \ - -x ".github/workflows/toolchain-compatibility.yml" \ - \ - -x "*docs/*" \ - -x "README.md" \ - -x "LICENSE" \ - \ - -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.sh" \ - -x ".github/workflows/buildscript-maintenance.yml" \ - -x ".github/workflows/release-packages-latest.yml" \ - -x ".github/workflows/release-packages-tags.yml" \ - -x ".github/workflows/toolchain-compatibility.yml" \ - \ - -x "*docs/*" \ - -x "*src/*" \ - -x "LICENSE" \ - -x "README.md" \ - \ - -x "packages/starter.zip" \ - -x "packages/migration.zip" - - - name: Release under current tag - 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/*