forked from srevinsaju/Firefox-Appimage
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (75 loc) · 2.2 KB
/
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Release
on:
merge_group:
pull_request:
branches:
- "main"
paths-ignore:
- "**/*.md"
- "**/continuous.yml"
push:
branches:
- "main"
paths-ignore:
- "**/*.md"
- "**/continuous.yml"
schedule:
- cron: "15 */18 * * *"
workflow_dispatch:
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
channel:
- firefox
- firefox-beta
- firefox-esr
- firefox-nightly
- firefox-devedition
language:
- en-US
- pt-BR
os:
- linux # i686
- linux64 # x86_64
name: ${{ matrix.os }}-${{ matrix.channel }}-${{ matrix.language }}
env:
FIREFOX_CHANNEL: ${{ matrix.channel }}
FIREFOX_OS: ${{ matrix.os }}
FIREFOX_LANG: ${{ matrix.language }}
FIREFOX_VERSION: NOT_SET
FIREFOX_BUILD_ID: NOT_SET
RELEASE_NOTES_URL: https://www.mozilla.org/firefox/releasenotes
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Build ${{ matrix.channel }}-${{ matrix.language }}
run: bash build/build.sh
# Error 422: Validation Failed: {"resource":"Release","code":"already_exists","field":"tag_name"}
- name: Prepare Release
uses: softprops/action-gh-release@v2
continue-on-error: true
with:
tag_name: ${{ matrix.channel }}-${{ env.FIREFOX_VERSION }}
make_latest: ${{ matrix.channel == 'firefox' && 'true' || 'false' }}
prerelease: false
- name: Publish Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.AppImage
dist/*.zsync
body: |
BuildID: ${{ env.FIREFOX_BUILD_ID }}
**[Firefox Release Notes](${{ env.RELEASE_NOTES_URL }})**
> [!TIP]
> Expand the "Assets" section below to download the AppImages.
tag_name: ${{ matrix.channel }}-${{ env.FIREFOX_VERSION }}
make_latest: ${{ matrix.channel == 'firefox' && 'true' || 'false' }}
prerelease: false