<commit_before>name: Release latest DEV version

on:
  push:
    branches: [ master ]
    
jobs:
  gradle:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-java@v2
      with:
        distribution: adopt
        java-version: 17.0.2
        
    - name: Setup Gradle
      uses: gradle/gradle-build-action@v2
    
    - name: Execute Gradle build
      run: ./gradlew --stacktrace --info
      # run: ./gradlew incrementPatch
      
    - name: Upload windows builds
      if: matrix.os == 'windows-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_windows_msi_installer
        path: build/jpackage/*.msi
        retention-days: 7  # store for 7 days
      
    - name: Upload windows portable builds
      if: matrix.os == 'windows-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_windows_msi_installer
        path: build/jpackage/MZmine/
        retention-days: 7  # store for 7 days
        
    - name: Upload builds ubuntu deb
      if: matrix.os == 'ubuntu-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_linux_deb_package
        path: build/jpackage/*.deb
        retention-days: 7  # store for 7 days
        
    - name: Upload builds ubuntu rpm
      if: matrix.os == 'ubuntu-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_linux_rpm_package
        path: build/jpackage/*.rpm
        retention-days: 7  # store for 7 days
        
    - name: Upload builds macos
      if: matrix.os == 'macos-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_macos_dmg_installer
        path: build/jpackage/*.dmg
        retention-days: 7  # store for 7 days
       
       
    - name: Update Automatic Release Ubuntu
      if: matrix.os == 'ubuntu-latest'
      uses: marvinpinto/action-automatic-releases@latest
      with:
        repo_token: "${{ secrets.GITHUB_TOKEN}}"
        automatic_release_tag: "Ubuntu-latest"
        prerelease: true
        title: "Ubuntu Development Build"
        files: build/jpackage/*.deb


    - name: Update Automatic Release Window
      if: matrix.os == 'windows-latest'
      uses: marvinpinto/action-automatic-releases@latest
      with:
        repo_token: "${{ secrets.GITHUB_TOKEN}}"
        automatic_release_tag: "Windows-latest"
        prerelease: true
        title: "Windows Development Build"
        files: build/jpackage/*.msi


    - name: Update Automatic Release MacOS
      if: matrix.os == 'macos-latest' || matrix.os == 'macos-11'
      uses: marvinpinto/action-automatic-releases@latest
      with:
        repo_token: "${{ secrets.GITHUB_TOKEN}}"
        automatic_release_tag: "MacOS-latest"
        prerelease: true
        title: "MacOS Development Build"
        files: build/jpackage/*.dmg<commit_msg>add rpm to release<commit_after>name: Release latest DEV version

on:
  push:
    branches: [ master ]
    
jobs:
  gradle:
    strategy:
      matrix:
        os: [ubuntu-latest, macos-latest, windows-latest]
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-java@v2
      with:
        distribution: adopt
        java-version: 17.0.2
        
    - name: Setup Gradle
      uses: gradle/gradle-build-action@v2
    
    - name: Execute Gradle build
      run: ./gradlew --stacktrace --info
      # run: ./gradlew incrementPatch
      
    - name: Upload windows builds
      if: matrix.os == 'windows-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_windows_msi_installer
        path: build/jpackage/*.msi
        retention-days: 7  # store for 7 days
      
    - name: Upload windows portable builds
      if: matrix.os == 'windows-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_windows_msi_installer
        path: build/jpackage/MZmine/
        retention-days: 7  # store for 7 days
        
    - name: Upload builds ubuntu deb
      if: matrix.os == 'ubuntu-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_linux_deb_package
        path: build/jpackage/*.deb
        retention-days: 7  # store for 7 days
        
    - name: Upload builds ubuntu rpm
      if: matrix.os == 'ubuntu-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_linux_rpm_package
        path: build/jpackage/*.rpm
        retention-days: 7  # store for 7 days
        
    - name: Upload builds macos
      if: matrix.os == 'macos-latest'
      uses: actions/upload-artifact@v2
      with:
        name: MZmine_macos_dmg_installer
        path: build/jpackage/*.dmg
        retention-days: 7  # store for 7 days
       
       
    - name: Update Automatic Release Ubuntu
      if: matrix.os == 'ubuntu-latest'
      uses: marvinpinto/action-automatic-releases@latest
      with:
        repo_token: "${{ secrets.GITHUB_TOKEN}}"
        automatic_release_tag: "Ubuntu-latest"
        prerelease: true
        title: "Ubuntu Development Build"
        files: build/jpackage/*.deb


    - name: Update Automatic Release Window
      if: matrix.os == 'windows-latest'
      uses: marvinpinto/action-automatic-releases@latest
      with:
        repo_token: "${{ secrets.GITHUB_TOKEN}}"
        automatic_release_tag: "Windows-latest"
        prerelease: true
        title: "Windows Development Build"
        files: build/jpackage/*.msi


    - name: Update Automatic Release MacOS
      if: matrix.os == 'macos-latest' || matrix.os == 'macos-11'
      uses: marvinpinto/action-automatic-releases@latest
      with:
        repo_token: "${{ secrets.GITHUB_TOKEN}}"
        automatic_release_tag: "MacOS-latest"
        prerelease: true
        title: "MacOS Development Build"
        files: |
          build/jpackage/*.dmg
          build/jpackage/*.rpm
{'fraction_non_alphanumeric': 0.100737512571237, 'fraction_numerical': 0.008045591686221924, 'mean_word_length': 2.0901087519419987, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1208520', 'n_tokens_mistral': 1968, 'n_tokens_neox': 1835, 'n_words': 441}