diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ee20ee..164a7a0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: - name: Set Up Java uses: actions/setup-java@v3.12.0 with: - distribution: 'oracle' + distribution: 'adopt' java-version: '17' - name: Set Up Flutter @@ -60,19 +60,7 @@ jobs: base_version="${{ env.VERSION }}" unique_tag="${base_version}-build-${{ github.run_number }}" echo "UNIQUE_TAG=$unique_tag" >> $GITHUB_ENV - - - name: Get Previous Tag - id: get_prev_tag - run: | - prev_tag=$(git describe --tags --abbrev=0) - echo "PREV_TAG=$prev_tag" >> $GITHUB_ENV - - - name: Generate Changelog - id: generate_changelog - run: | - changelog=$(git log ${{ env.PREV_TAG }}..HEAD --pretty=format:"%h - %s (%an)") - echo "CHANGELOG=$changelog" >> $GITHUB_ENV - + - name: Create Release uses: ncipollo/release-action@v1 with: @@ -80,9 +68,7 @@ jobs: tag: v${{ env.UNIQUE_TAG }} token: ${{ secrets.KOCAK }} name: "Release v${{ env.UNIQUE_TAG }}" - body: | - ## Changelog - ${{ env.CHANGELOG }} + body: "Rilis otomatis dari GitHub Actions" - name: Checkout jeketi-app Repository uses: actions/checkout@v3