forked from nix-community/NixOS-WSL
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 1.62 KB
/
on_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
name: "Release"
on:
push:
tags: []
jobs:
build:
name: Build 🛠️
uses: ./.github/workflows/run_build.yml
package:
name: Package 📦
uses: ./.github/workflows/run_package.yml
needs:
- build
secrets:
APPX_SIGNING_CERT: ${{ secrets.APPX_SIGNING_CERT }}
CERT_ALGORITHM: ${{ secrets.CERT_ALGORITHM }}
release:
needs:
- build
- package
name: Create Release 📢
runs-on: ubuntu-latest
steps:
- name: Download Tarball 📥
uses: actions/download-artifact@v4
with:
name: tarball
- name: Download msix 📥
uses: actions/download-artifact@v4
with:
name: launcher-msix
- name: Rename msix ✏️
run: mv */*.msixbundle NixOS-WSL-Launcher.msixbundle
- name: Download bundle
uses: actions/download-artifact@v4
with:
name: launcher-bundle
path: launcher-bundle
- name: Zip launcher bundle 📦
working-directory: launcher-bundle
run: zip -r ../NixOS-WSL-Launcher.zip .
- name: Generate Checksums 🔑
run: |
for x in *.{tar.gz,msixbundle,zip}; do
sha256sum $x > ${x}.sha256
done
- name: Attach to Release 📎
uses: softprops/action-gh-release@v2
with:
files: |
elmer-wsl.tar.gz
elmer-wsl.tar.gz.sha256
NixOS-WSL-Launcher.zip
NixOS-WSL-Launcher.zip.sha256
NixOS-WSL-Launcher.msixbundle
NixOS-WSL-Launcher.msixbundle.sha256
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}