-
Notifications
You must be signed in to change notification settings - Fork 16
53 lines (51 loc) · 2.05 KB
/
publish-github-release.yml
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
name: Publish GitHub Release
on:
workflow_dispatch:
inputs:
draftRelease:
description: 'Mark as draft'
required: true
default: true
type: boolean
jobs:
build:
uses: ./.github/workflows/build.yml
with:
build_type: Debug
upload:
needs: build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download Artifacts
uses: actions/download-artifact@v4
- name: Prepare Release
id: changelog
run: |
awk -f .github/changelog-last-content.awk CHANGELOG.md > release-notes.md
eval "$(bash .github/changelog-last-version.sh CHANGELOG.md | tee -a "$GITHUB_OUTPUT")"
for item in minibrowser mediaplayer webdriver ; do
mv -vf "$item-Debug/debug/$item-debug.apk" "wpe-android-$item-$RELEASE_WPE_WEBKIT_VERSION-$RELEASE_WPE_ANDROID_VERSION.apk"
done
- name: Delete Artifacts
uses: geekyeggo/delete-artifact@v5
with:
name: |
minibrowser-Debug
mediaplayer-Debug
webdriver-Debug
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: "WPE Android ${{ steps.changelog.outputs.RELEASE_WPE_WEBKIT_VERSION }} (${{ steps.changelog.outputs.RELEASE_WPE_ANDROID_VERSION }})"
tag_name: "${{ steps.changelog.outputs.RELEASE_WPE_ANDROID_VERSION }}"
draft: ${{ inputs.draftRelease }}
body_path: release-notes.md
fail_on_unmatched_files: true
files: |
wpe-android-minibrowser-${{ steps.changelog.outputs.RELEASE_WPE_WEBKIT_VERSION }}-${{ steps.changelog.outputs.RELEASE_WPE_ANDROID_VERSION }}.apk
wpe-android-mediaplayer-${{ steps.changelog.outputs.RELEASE_WPE_WEBKIT_VERSION }}-${{ steps.changelog.outputs.RELEASE_WPE_ANDROID_VERSION }}.apk
wpe-android-webdriver-${{ steps.changelog.outputs.RELEASE_WPE_WEBKIT_VERSION }}-${{ steps.changelog.outputs.RELEASE_WPE_ANDROID_VERSION }}.apk