Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fskhri authored Oct 4, 2024
1 parent 2761f6d commit 00006ea
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -60,29 +60,15 @@ 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:
artifacts: "build/app/outputs/flutter-apk/app-release.apk"
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
Expand Down

0 comments on commit 00006ea

Please sign in to comment.