-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.07 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
name: eucalypt publish
on:
release:
types: [published]
workflow_dispatch:
jobs:
update-latest-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: update branch latest
run: |
git checkout latest
git merge --ff-only ${GITHUB_REF}
git push origin latest
generate-homebrew-formula:
runs-on: ubuntu-latest
needs: [update-latest-tag]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: build and install temporary eu
uses: actions-rs/cargo@v1
with:
command: install
args: --path .
- name: generate homebrew formula
run: |
eu -t formula-sh > generate.sh
chmod +x generate.sh
./generate.sh > eucalypt.rb
- name: upload formula
uses: actions/upload-artifact@v1
with:
name: eucalypt.rb
path: eucalypt.rb