Update release-beta.yml workflow to fix Gradle wrapper permissions an… #16
This file contains 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: Release Beta | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
path: './' | |
fetch-depth: 0 | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Grant execute permission for gradlew | |
run: chmod +x ./gradlew | |
env: | |
CI: true | |
- name: Check Gradle wrapper permissions and existence | |
run: ls -l ./gradlew && file ./gradlew | |
- name: Run Gradle dependencies | |
run: ./gradlew --no-daemon dependencies | |
env: | |
CI: true | |
- name: Release to GitHub | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
RELEASE_TARGET: ${{ github.sha }} | |
PRERELEASE: true | |
run: ./gradlew --no-daemon build githubRelease -x test |