Skip to content

Github Publish

Github Publish #3

Workflow file for this run

name: Github Publish
on:
workflow_dispatch:
# push:
# branches:
# - 'floss'
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1
- uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: flutter-ci.yml
workflow_conclusion: success
branch: master
name: release-apk
path: downloads
if_no_artifact_found: fail
# 2
- name: Generate release tag
id: tag
run: |
echo "::set-output name=release_tag::Sensify_$(date +"%Y.%m.%d_%H-%M")"
# 3
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
files: downloads/app-release-unsigned-signed.apk