1
+ name : Continuous Deployment
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*.*.*"
7
+
8
+ jobs :
9
+ linux-release :
10
+ name : Linux Release
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Build
15
+ run : cargo build --release
16
+ - name : Archive
17
+ working-directory : target/release
18
+ run : tar -czvf grin-${{ github.ref_name }}-linux-x86_64.tar.gz grin
19
+ - name : Create Checksum
20
+ working-directory : target/release
21
+ run : openssl sha256 grin-${{ github.ref_name }}-linux-x86_64.tar.gz > grin-${{ github.ref_name }}-linux-x86_64-sha256sum.txt
22
+ - name : Release
23
+ uses : softprops/action-gh-release@v1
24
+ with :
25
+ generate_release_notes : true
26
+ files : |
27
+ target/release/grin-${{ github.ref_name }}-linux-x86_64.tar.gz
28
+ target/release/grin-${{ github.ref_name }}-linux-x86_64-sha256sum.txt
29
+
30
+ macos-release :
31
+ name : macOS Release
32
+ runs-on : macos-latest
33
+ steps :
34
+ - name : Checkout
35
+ uses : actions/checkout@v3
36
+ - name : Build
37
+ run : cargo build --release
38
+ - name : Archive
39
+ working-directory : target/release
40
+ run : tar -czvf grin-${{ github.ref_name }}-macos-x86_64.tar.gz grin
41
+ - name : Create Checksum
42
+ working-directory : target/release
43
+ run : openssl sha256 grin-${{ github.ref_name }}-macos-x86_64.tar.gz > grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
44
+ - name : Release
45
+ uses : softprops/action-gh-release@v1
46
+ with :
47
+ files : |
48
+ target/release/grin-${{ github.ref_name }}-macos-x86_64.tar.gz
49
+ target/release/grin-${{ github.ref_name }}-macos-x86_64-sha256sum.txt
50
+
51
+ windows-release :
52
+ name : Windows Release
53
+ runs-on : windows-latest
54
+ steps :
55
+ - name : Checkout
56
+ uses : actions/checkout@v3
57
+ - name : Build
58
+ run : cargo build --release
59
+ - name : Archive
60
+ uses : vimtor/action-zip@v1
61
+ with :
62
+ files : target/release/grin.exe
63
+ dest : target/release/grin-${{ github.ref_name }}-win-x86_64.zip
64
+ - name : Create Checksum
65
+ working-directory : target/release
66
+ shell : pwsh
67
+ run : get-filehash -algorithm sha256 grin-${{ github.ref_name }}-win-x86_64.zip | Format-List | Out-String | ForEach-Object { $_.Trim() } > grin-${{ github.ref_name }}-win-x86_64-sha256sum.txt
68
+ - name : Release
69
+ uses : softprops/action-gh-release@v1
70
+ with :
71
+ files : |
72
+ target/release/grin-${{ github.ref_name }}-win-x86_64.zip
73
+ target/release/grin-${{ github.ref_name }}-win-x86_64-sha256sum.txt
0 commit comments