Update dependency com.android.tools.build:aapt2-proto to v8.1.1-10154469 - autoclosed #212
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: build | |
on: | |
pull_request: | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 11 | |
- uses: gradle/wrapper-validation-action@v1 | |
- uses: gradle/gradle-build-action@v2 | |
- run: ./gradlew build | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: diffuse-latest-binary.jar | |
path: diffuse/build/libs/diffuse-*-binary.jar | |
if-no-files-found: error | |
#- run: ./gradlew uploadArchives | |
# if: ${{ github.ref == 'refs/heads/trunk' && github.repository == 'JakeWharton/diffuse' }} | |
# env: | |
# ORG_GRADLE_PROJECT_SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }} | |
# ORG_GRADLE_PROJECT_SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} | |
- name: Extract release notes | |
id: release_notes | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: ffurrer2/extract-release-notes@v1 | |
- name: Create Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: ${{ steps.release_notes.outputs.release_notes }} | |
files: diffuse/build/libs/diffuse-*-binary.jar | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Get version | |
id: get_version | |
if: startsWith(github.ref, 'refs/tags/') | |
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//} | |
- name: Set SHA | |
id: shasum | |
if: startsWith(github.ref, 'refs/tags/') | |
run: echo ::set-output name=sha::"$(shasum -a 256 diffuse/build/libs/diffuse-*-binary.jar | awk '{printf $1}')" | |
- name: Bump Brew | |
if: startsWith(github.ref, 'refs/tags/') | |
env: | |
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GH_HOMEBREW_TOKEN }} | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "github-actions" | |
# Update to ensure we have the latest version which supports arbitrary default branches. | |
brew update | |
brew tap JakeWharton/repo | |
brew bump-formula-pr -f --version=${{ steps.get_version.outputs.version }} --no-browse --no-audit \ | |
--sha256=${{ steps.shasum.outputs.sha }} \ | |
--url="https://github.com/JakeWharton/diffuse/releases/download/${{ steps.get_version.outputs.version }}/diffuse-${{ steps.get_version.outputs.version }}-binary.jar" \ | |
JakeWharton/repo/diffuse |