-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (48 loc) · 1.48 KB
/
Copy pathrelease.yml
File metadata and controls
58 lines (48 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# عند دفع وسم إصدار v* يُبنى أرشيف التوزيع ويُرفَق بـ GitHub Release
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
package-and-release:
name: Build tarball & publish release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: frontend/package-lock.json
- name: Sync VERSION from tag
run: |
TAG="${GITHUB_REF_NAME#v}"
echo "$TAG" > VERSION
echo "VERSION=$TAG" >> "$GITHUB_ENV"
- name: Build distribution tarball
env:
RELEASE_VERSION: ${{ github.ref_name }}
run: ./scripts/package_release.sh
- name: Build Python wheel (optional artifact)
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: pip wheel
run: python -m pip install build && python -m build --wheel --outdir dist-wheel .
continue-on-error: false
- name: Create GitHub Release with assets
uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref_name }}
generate_release_notes: true
files: |
dist/emulator-android-*.tar.gz
dist-wheel/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}