-
Notifications
You must be signed in to change notification settings - Fork 15
55 lines (53 loc) · 1.89 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
54
55
name: Publish GitHub Release
on:
workflow_dispatch:
tags:
- v*.*.*
inputs:
draftRelease:
description: 'Mark as draft'
required: true
default: true
type: boolean
jobs:
build:
uses: ./.github/workflows/build.yml
with:
build_type: Release
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-Release/release/$item-release.apk" \
"wpe-android-$item-${{ steps.changelog.outputs.RELEASE_WPE_WEBKIT_VERSION }}.apk"
done
- name: Delete Artifacts
uses: geekyeggo/delete-artifact@v5
with:
name: |
minibrowser-Release
mediaplayer-Release
webdriver-Release
- 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
files: |
wpe-android-${{ steps.changelog.outputs.RELEASE_WPE_WEBKIT_VERSION }}-minibrowser.apk
wpe-android-${{ steps.changelog.outputs.RELEASE_WPE_WEBKIT_VERSION }}-mediaplayer.apk
wpe-android-${{ steps.changelog.outputs.RELEASE_WPE_WEBKIT_VERSION }}-webdriver.apk