|
4 | 4 | push: |
5 | 5 | # Sequence of patterns matched against refs/tags |
6 | 6 | tags: |
7 | | - - "v*" # Any tag will cause release |
| 7 | + - "v*" # Version tags |
8 | 8 |
|
9 | 9 | env: |
10 | 10 | CARGO_TERM_COLOR: always |
@@ -32,32 +32,27 @@ jobs: |
32 | 32 | id: get-tag |
33 | 33 | uses: olegtarasov/get-tag@v2.1 |
34 | 34 |
|
35 | | - echo-info: |
36 | | - name: Echo Info |
37 | | - needs: release-info |
38 | | - runs-on: ubuntu-latest |
39 | | - steps: |
40 | | - - name: Echo Info |
41 | | - run: | |
42 | | - echo elara-kv-${{ needs.release-info.outputs.tag }} |
43 | | - echo url:${{ needs.release-info.outputs.upload_url }} |
44 | | -
|
45 | 35 | release-linux: |
46 | 36 | name: Release on Ubuntu |
47 | 37 | # we need to know the upload URL |
48 | 38 | needs: release-info |
49 | 39 | runs-on: ubuntu-latest |
50 | 40 | steps: |
| 41 | + - uses: actions/checkout@v1 |
51 | 42 | - uses: actions-rs/toolchain@v1 |
52 | 43 | with: |
53 | 44 | toolchain: stable |
54 | 45 | override: true |
55 | | - - uses: actions/checkout@v1 |
56 | 46 | - name: Build |
57 | 47 | run: | |
58 | 48 | git submodule update --init --remote |
59 | 49 | cargo build --release |
60 | 50 |
|
| 51 | + - name: print release-info |
| 52 | + run: | |
| 53 | + echo release version: elara-kv-${{ needs.release-info.outputs.tag }} |
| 54 | + echo release url: ${{ needs.release-info.outputs.upload_url }} |
| 55 | +
|
61 | 56 | - name: Upload linux version |
62 | 57 | uses: actions/upload-release-asset@v1.0.1 |
63 | 58 | env: |
|
67 | 62 | asset_path: ./target/release/elara-kv |
68 | 63 | asset_name: elara-kv-${{ needs.release-info.outputs.tag }}-x86_64-ubuntu |
69 | 64 | asset_content_type: application/octet-stream |
| 65 | + |
| 66 | + release-windows: |
| 67 | + name: Release on Windows |
| 68 | + # we need to know the upload URL |
| 69 | + needs: release-info |
| 70 | + runs-on: windows-latest |
| 71 | + steps: |
| 72 | + - uses: actions-rs/toolchain@v1 |
| 73 | + with: |
| 74 | + toolchain: stable |
| 75 | + override: true |
| 76 | + - uses: actions/checkout@v1 |
| 77 | + - name: Build |
| 78 | + run: | |
| 79 | + git submodule update --init --remote |
| 80 | + cargo build --release |
| 81 | +
|
| 82 | + - name: Upload linux version |
| 83 | + uses: actions/upload-release-asset@v1.0.1 |
| 84 | + env: |
| 85 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 86 | + with: |
| 87 | + upload_url: ${{ needs.release-info.outputs.upload_url }} |
| 88 | + asset_path: ./target/release/elara-kv |
| 89 | + asset_name: elara-kv-${{ needs.release-info.outputs.tag }}-x86_64-windows |
| 90 | + asset_content_type: application/octet-stream |
0 commit comments