-
-
Notifications
You must be signed in to change notification settings - Fork 413
45 lines (37 loc) · 1.42 KB
/
release.yaml
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
name: Releases
on:
push:
tags: '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
show-progress: 'false'
submodules: 'true'
- name: Generate version file
run: echo $(git -C $GITHUB_WORKSPACE describe --tags --abbrev=0) > version
- name: Build Flatpak
run: |
sudo apt-get update -qq
sudo apt-get install -y flatpak-builder
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install --noninteractive org.gnome.Platform/x86_64/45
sudo flatpak install --noninteractive org.gnome.Sdk/x86_64/45
make flatpak-repository
make flatpak-bundle
mv nyxt.flatpak nyxt-$(cat version).flatpak
- name: Generate release notes
run: |
echo "Release notes: https://nyxt-browser.com/article/release-$(cat version).org" >> release.txt
echo "" >> release.txt
echo "To compile from source, prefer the tarball including the submodules if you don't manage the Lisp dependencies yourself." >> release.txt
- name: Generate source archive with submodules
run: git ls-files --recurse-submodules | tar caf nyxt-$(cat version)-source-with-submodules.tar.xz -T-
- name: Release
uses: ncipollo/release-action@v1
with:
bodyFile: release.txt
artifacts: "nyxt-*.tar.xz*,*.flatpak"