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 f488f0c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-tdlib.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Build TDLib

on: workflow_dispatch
on:
workflow_dispatch:
workflow_call:

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

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

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}

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 ${{ github.run_id }} -R $REPO
- name: Zip artifacts
run: find * -maxdepth 0 -type d -execdir zip -q -r -6 '{}.zip' '{}' \;
- name: Create release
run: gh release create ${{ github.ref_name }} -R $REPO --generate-notes --prerelease ./*.zip

0 comments on commit f488f0c

Please sign in to comment.