File tree Expand file tree Collapse file tree 4 files changed +19
-31
lines changed Expand file tree Collapse file tree 4 files changed +19
-31
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build :
10
10
runs-on : ubuntu-latest
11
- permissions :
12
- contents : write
13
11
steps :
14
12
- uses : actions/checkout@v3
15
13
- name : Build
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : release
1
+ name : _release
2
2
on :
3
- push :
4
- tags : ['v*']
3
+ workflow_call :
5
4
6
5
env :
7
6
CARGO_TERM_COLOR : always
8
7
9
8
jobs :
10
9
build :
11
- runs-on : ubuntu-latest
10
+ runs-on : ${{ matrix.os }}
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-latest, windows-latest]
12
14
permissions :
13
15
contents : write
14
16
steps :
17
19
run : cargo build --verbose --release
18
20
- name : Test
19
21
run : cargo test --verbose --release
20
- - uses : ncipollo/release-action@v1
22
+ - name : release
23
+ uses : ncipollo/release-action@v1
24
+ if : startsWith(github.ref, 'refs/tags/v')
21
25
with :
22
- artifacts : " target/release/gitopolis"
26
+ artifacts : " target/release/gitopolis* "
23
27
token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : tag
2
+
3
+ on :
4
+ push :
5
+ tags : [ "v*" ]
6
+
7
+ jobs :
8
+ ci :
9
+ uses : ./.github/workflows/release.yml
You can’t perform that action at this time.
0 commit comments