@foxreis/tizentube 1.14.4 → 1.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,72 @@
1
+ name: Build TizenTube Standalone and Release
2
+
3
+
4
+ on:
5
+ push:
6
+ tags:
7
+ - 'v*.*.*'
8
+
9
+ jobs:
10
+ build:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Clone repo with full history and tags
14
+ uses: actions/checkout@v4
15
+ with:
16
+ fetch-depth: 0 # fetch full history for tags
17
+ fetch-tags: true
18
+
19
+ - name: Fetch tags (safety)
20
+ run: |
21
+ git fetch --tags --force --prune
22
+ - name: Determine release tag
23
+ id: version
24
+ run: |
25
+ TAG=$(git describe --tags --abbrev=0 2>/dev/null || true)
26
+ if [ -z "$TAG" ]; then
27
+ echo "No tags found; deriving from config.xml or fallback"
28
+ if [ -f standalone/config.xml ]; then
29
+ # Extract version from config.xml's version attribute
30
+ CFG_VER=$(sed -n 's/.*version="\([^"]*\)".*/\1/p' standalone/config.xml | head -n1)
31
+ if [ -n "$CFG_VER" ]; then
32
+ TAG=v$CFG_VER
33
+ else
34
+ TAG=v0.0.0-${GITHUB_SHA:0:7}
35
+ fi
36
+ else
37
+ TAG=v0.0.0-${GITHUB_SHA:0:7}
38
+ fi
39
+ fi
40
+ echo "RELEASE_VERSION=$TAG" >> $GITHUB_ENV
41
+
42
+ - name: Install modules, transpile service and build service
43
+ working-directory: standalone/service
44
+ run: |
45
+ npm install
46
+ npm install -g @vercel/ncc https://github.com/reisxd/tizen.js/tarball/main
47
+ npm run build
48
+ rm -rf node_modules
49
+
50
+ - name: Prepare Tizen Certificate
51
+ run: |
52
+ echo "${{ secrets.TIZEN_AUTHOR_KEY }}" | base64 -d > "${GITHUB_WORKSPACE}/TizenTube-author.p12"
53
+
54
+ - name: Build TizenTube
55
+ working-directory: standalone
56
+ run: |
57
+ mkdir release
58
+ tizenjs build . -t wgt -o release/TizenTube.wgt --author "${GITHUB_WORKSPACE}/TizenTube-author.p12" --authorPwd '${{ secrets.TIZEN_AUTHOR_KEY_PW }}' -p public --ignore node_modules,/.*\.wgt$/,/userwidget/,/release/
59
+
60
+ - name: Upload TizenTube package artifact for Old Tizen
61
+ uses: actions/upload-artifact@v4
62
+ with:
63
+ name: app-${{ github.sha }}-old.wgt
64
+ path: standalone/release/TizenTube.wgt
65
+
66
+ - name: Release TizenTube Build Results
67
+ uses: softprops/action-gh-release@v1
68
+ with:
69
+ tag_name: ${{ env.RELEASE_VERSION }}
70
+ target_commitish: ${{ github.sha }}
71
+ files: |
72
+ standalone/release/*