-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add Gradle CI workflow with APK artifact upload #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,34 @@ | ||||||
| name: Gradle CI | ||||||
|
|
||||||
| on: | ||||||
| push: | ||||||
| pull_request: | ||||||
|
|
||||||
| jobs: | ||||||
| build: | ||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| contents: read | ||||||
|
|
||||||
| steps: | ||||||
| - name: Checkout repository | ||||||
| uses: actions/checkout@v4 | ||||||
|
|
||||||
| - name: Set up JDK 17 | ||||||
| uses: actions/setup-java@v4 | ||||||
| with: | ||||||
| java-version: '17' | ||||||
| distribution: 'temurin' | ||||||
|
|
||||||
| - name: Setup Gradle | ||||||
| uses: gradle/actions/setup-gradle@v4 | ||||||
|
||||||
| uses: gradle/actions/setup-gradle@v4 | |
| uses: gradle/actions/setup-gradle@017a9effdb900e5b5b2fddfb590a105619dca3c3 # v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The job-level
permissionsrestrictGITHUB_TOKENtocontents: read, butactions/upload-artifacttypically requiresactions: writeto create artifacts. As written, the upload step is likely to fail with a permissions error; addactions: write(or remove the restrictive permissions block) so artifact upload works while still keeping least-privilege.