Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CD Pipeline (Manual Release) | |
| on: push | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: "temurin" | |
| java-version: "17" | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Format Kotlin code with ktfmt | |
| run: ./gradlew ktfmtFormat | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| - name: Create Release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Автоматически доступен в GitHub Actions | |
| with: | |
| tag_name: v${{ github.run_number }} # Используем номер запуска как тег | |
| release_name: Release v${{ github.run_number }} | |
| draft: false | |
| prerelease: false |