Bump org.json:json from 20240303 to 20241224 (#851) #58
Workflow file for this run
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 Pillarbox | |
on: | |
push: | |
# Pattern matched against refs/tags | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
- '[0-9]+.[0-9]+.[0-9]+-[0-9a-zA-Z]+' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DEMO_KEY_PASSWORD: ${{ secrets.DEMO_KEY_PASSWORD }} | |
USERNAME: ${{ github.actor }} | |
GITHUB_TOKEN: ${{ github.token }} | |
VERSION_NAME: ${{ github.ref_name }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Check if pre-release tag | |
id: check-tag | |
run: | | |
if [[ "${GITHUB_REF_NAME}" =~ ^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}-[0-9a-zA-Z]+$ ]]; then | |
echo "prerelease=true" >> $GITHUB_OUTPUT | |
fi | |
- name: Print release tag | |
run: | | |
echo "Tag: ${GITHUB_REF_NAME}" | |
echo "Version name: ${VERSION_NAME}" | |
echo "Pre-release: ${steps.check-tag.outputs.prerelease}" | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }} | |
cache-read-only: true | |
- name: Publish to GitHub Packages | |
run: ./gradlew publish | |
- name: Build with Gradle | |
run: ./gradlew assembleProdRelease | |
- name: Upload artifact to Firebase App Distribution | |
uses: wzieba/Firebase-Distribution-Github-Action@v1 | |
with: | |
appId: ${{ secrets.RELEASE_APP_ID }} | |
serviceCredentialsFileContent: ${{ secrets.FIREBASE_CREDENTIAL_FILE_CONTENT }} | |
groups: ${{ secrets.RELEASE_GROUPS }} | |
file: pillarbox-demo/build/outputs/apk/prod/release/pillarbox-demo-prod-release.apk | |
- name: Create Github release | |
uses: ncipollo/release-action@v1 | |
with: | |
draft: true | |
prerelease: steps.check-tag.outputs.prerelease == 'true' | |
skipIfReleaseExists: true | |
generateReleaseNotes: true | |
- name: Build Dokka documentation | |
run: ./gradlew :dokkaGenerate | |
- name: Deploy Dokka documentation | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: build/dokka/html | |
single-commit: true | |
target-folder: api |