Skip to content

Commit 5d67575

Browse files
committed
fix ci
1 parent 5f42d8b commit 5d67575

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,13 @@
11
name: Test and build
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
release:
5+
types: [created]
76

87
jobs:
9-
test:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- uses: actions/checkout@v2
14-
- uses: webfactory/ssh-agent@v0.5.3
15-
with:
16-
ssh-private-key: ${{ secrets.DEPLOY_KEY_SECRET }}
17-
- name: Run
18-
run: cargo test
19-
208
release:
219
name: release ${{ matrix.target }}
2210
runs-on: ubuntu-latest
23-
needs: test
2411
strategy:
2512
fail-fast: false
2613
matrix:
@@ -34,15 +21,11 @@ jobs:
3421

3522
steps:
3623
- uses: actions/checkout@master
37-
- uses: webfactory/ssh-agent@v0.5.3
38-
with:
39-
ssh-private-key: ${{ secrets.DEPLOY_KEY_SECRET }}
40-
4124
- name: Compile and release
4225
uses: rust-build/rust-build.action@v1.3.2
4326
env:
4427
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
SRC_DIR: proxy_client
28+
SRC_DIR: ownserver
4629
with:
4730
RUSTTARGET: ${{ matrix.target }}
4831
ARCHIVE_TYPES: ${{ matrix.archive }}

0 commit comments

Comments
 (0)