Skip to content

Publish GitHub release #43

Publish GitHub release

Publish GitHub release #43

name: Publish GitHub release
on:
workflow_dispatch:
inputs:
app_version:
description: 'App version: v*.*.*'
default: 'v*.*.*'
required: true
release_branch:
description: 'Branch from which release will be created'
default: 'main'
required: true
release_name:
description: 'Name which will show in release'
required: true
release_draft:
description: 'Would it be a draft release?'
type: boolean
required: true
default: true
jobs:
build:
uses: nova-wallet/test-runner/.github/workflows/build_android_app.yml@master
with:
branch: ${{ github.event.inputs.release_branch }}
gradlew-command: assembleReleaseGithub
keystore-file-name: github_key.jks
secrets: inherit
create-release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
- uses: rickstaa/action-create-tag@v1
with:
tag: ${{ github.event.inputs.app_version }}
message: ${{ github.event.inputs.release_name }}
- name: Download built artifact
uses: actions/download-artifact@v2
with:
name: apk
path: app
- name: Rename artifacts
run: mv app/releaseGithub/app-releaseGithub.apk app/releaseGithub/nova-wallet-android-${{ github.event.inputs.app_version }}-github.apk
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.app_version }}
name: ${{ github.event.inputs.release_name }}
draft: ${{ github.event.inputs.release_draft }}
files: app/releaseGithub/nova-wallet-android-${{ github.event.inputs.app_version }}-github.apk