Skip to content

Commit

Permalink
Add pre release version of CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreal2000 committed May 22, 2024
1 parent a459e22 commit 2e60a1c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build-tdlib.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Build TDLib

on: workflow_dispatch
on:
workflow_dispatch:
workflow_call:
outputs:
run-id:
description: "The run_id of this workflow"
value: ${{ github.run_id }}

env:
TDLIB_VERSION: 2589c3fd46925f5d57e4ec79233cd1bd0f5d0c09
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CD

on:
push:
tags:
# - "v[0-9]+.[0-9]+.[0-9]+"
- "*"

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
build-tdlib:
uses: ./.github/workflows/build-tdlib.yml
release:
runs-on: ubuntu-latest
needs: build-tdlib
steps:
- name: Download artifacts
run: gh run download ${{ needs.build-tdlib.outputs.run-id }}
- name: Zip artifacts
run: find * -maxdepth 0 -type d -execdir zip -q -r -0 '{}.zip' '{}' \;
- name: Create release
run: gh release create ${{ github.ref_name }} --generate-notes --prerelease ./*.zip

0 comments on commit 2e60a1c

Please sign in to comment.