mirror of
https://github.com/wrwrabbit/Partisan-Telegram-Android.git
synced 2026-05-05 23:51:00 +00:00
41 lines
1.6 KiB
YAML
41 lines
1.6 KiB
YAML
name: Create Beta Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest # [self-hosted, ptg]
|
|
steps:
|
|
- name: Create Release
|
|
id: create_release
|
|
uses: actions/create-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
|
with:
|
|
tag_name: 3.0.22b
|
|
release_name: 3.0.22b
|
|
body: |
|
|
Bug fixes.
|
|
draft: false
|
|
prerelease: true
|
|
- uses: actions/checkout@v2
|
|
- name: Build docker image
|
|
run: docker build -f DockerfileBeta -t telegram-build .
|
|
- name: Build app
|
|
run: docker run --rm -v "$PWD":/home/source telegram-build #--cpus="3.5" -m 6000M telegram-build
|
|
- name: Print Hash
|
|
working-directory: ${{env.GITHUB_WORKSPACE}}
|
|
run: sha256sum TMessagesProj/build/outputs/apk/afat/HA/app.apk
|
|
- name: Upload APK
|
|
id: upload-release-asset
|
|
uses: actions/upload-release-asset@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
|
asset_path: TMessagesProj/build/outputs/apk/afat/HA/app.apk
|
|
asset_name: PTelegram-b.apk
|
|
asset_content_type: application/vnd.android.package-archive
|
|
- name: Create cleanup request
|
|
run: touch delete_request
|