-
Notifications
You must be signed in to change notification settings - Fork 49
122 lines (102 loc) · 3.64 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Publish and Release
on:
workflow_dispatch:
push:
tags: "*"
jobs:
crates-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Upload to crates.io
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
gh-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download artifacts
uses: dawidd6/action-download-artifact@v3
with:
workflow_conclusion: success
workflow: build.yml
path: ./out
- name: Create sha256sum for Scoop
run: sha256sum ./out/**/ferium-windows-msvc.zip | cut -d ' ' -f 1 > ./out/ferium-windows-msvc.zip.sha256
# Remove the dots for the markdown header
- name: MD Header
run: echo "MD_HEADER=$(git describe --tags --abbrev=0 | sed 's/\.//g')" >> $GITHUB_ENV
- name: Get the latest tag
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Create release
uses: softprops/action-gh-release@v1
with:
files: ./out/**
name: Ferium ${{ env.TAG }}
tag_name: ${{ env.TAG }}
body: |
Compiled binaries for Ferium version `${{ env.TAG }}` ([changelog](${{ github.server_url }}/${{ github.repository }}/blob/main/CHANGELOG.md#${{ env.MD_HEADER }}))
The provided binaries are for:
- Linux ARM without a GUI file dialogue
- Linux ARM (aarch64 linux musl)
- Linux without a GUI file dialogue
- Linux (x64 linux musl)
- macOS Apple Silicon (aarch64 darwin)
- macOS Intel (x64 darwin)
- GNU Windows (x64 windows gnu) (i.e. Cygwin/MinGW)
- Windows (x64 windows msvc)
You can install ferium by downloading and unzipping the appropriate asset, and moving the executable to ~/bin or any other folder in your path.
aur-update:
runs-on: ubuntu-latest
needs: gh-release
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get the latest tag
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Update no-gui AUR package
uses: aksh1618/update-aur-package@v1
with:
package_name: ferium-bin
commit_username: "Ilesh Thiada"
commit_email: [email protected]
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
- name: Update gui AUR package
uses: aksh1618/update-aur-package@v1
with:
package_name: ferium-gui-bin
commit_username: "Ilesh Thiada"
commit_email: [email protected]
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
homebrew-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get the latest tag
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Update Homebrew formula
uses: mislav/bump-homebrew-formula-action@v3
with:
tag-name: ${{ env.TAG }}
env:
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}
winget-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: vedantmgoyal9/winget-releaser@v2
with:
identifier: GorillaDevs.Ferium
fork-user: theRookieCoder
installers-regex: ferium-windows-msvc\.zip
token: ${{ secrets.COMMITTER_TOKEN }}