Skip to content

Release

Release #34

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: true
env:
SIGNING_KEY_FILE: /home/runner/secretKey.gpg
jobs:
build_aar:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Java
uses: ./.github/actions/setup_java
- name: Decode Signing Key
run: ./ci decode_signing_key
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
- name: Assemble
run: ./ci build
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
# Run unit tests after a successful build
# unit_test_browser_switch:
# name: Unit Test Browser Switch
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2
# - name: Setup Java
# uses: ./.github/actions/setup_java
# - name: Run Unit Tests
# run: ./ci unit_tests
# Publish after successful build and unit tests
publish_browser_switch:
needs: [ build_aar, unit_test_browser_switch ]

Check failure on line 43 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 43, Col: 25): Job 'publish_browser_switch' depends on unknown job 'unit_test_browser_switch'.
name: Publish To Sonatype
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Java
uses: ./.github/actions/setup_java
- name: Decode Signing Key
run: ./ci decode_signing_key
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
- name: Update Version
run: ./ci update_version ${{ github.event.inputs.version }}
- name: Publish Browser Switch
run: ./ci publish release
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
# release_finished:
# needs: [ publish_browser_switch ]
# name: Release Finished
# runs-on: ubuntu-latest
# steps:
# - run: echo "Release finished"
#
# bump_version:
# needs: [ release_finished ]
# name: Bump Version
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2
# - name: Set GitHub User
# run: ./ci set_github_user_to_braintreeps
# - name: Update Version
# run: |
# ./ci update_version ${{ github.event.inputs.version }}
# ./ci commit_and_tag_release ${{ github.event.inputs.version }}
#
# ./ci increment_snapshot_version ${{ github.event.inputs.version }}
# ./ci increment_demo_app_version_code
#
# git commit -am 'Prepare for development'
# git push origin master ${{ github.event.inputs.version }}
#
# create_github_release:
# needs: [ bump_version ]
# name: Create GitHub Release
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v2
# - name: Save changelog entries to a file
# run: ./ci get_latest_changelog_entries > changelog_entries.md
# - name: Create GitHub Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.event.inputs.version }}
# release_name: ${{ github.event.inputs.version }}
# body_path: changelog_entries.md
# draft: false
# prerelease: false