-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.47 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
name: release
on:
release:
types: [published]
jobs:
release-linux-x64-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: |
~/.cache/bazelisk
~/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/checkout@v4
- run: 'bazel build --config=ci //:ecsact'
- run: 'cp ./bazel-bin/ecsact ecsact_${{ github.ref_name }}_linux_x64'
- run: 'gh release upload ${{ github.ref_name }} ecsact_${{ github.ref_name }}_linux_x64'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
release-windows-x64-binary:
runs-on: windows-latest
steps:
- uses: actions/cache@v3
with:
path: |
/Users/runneradmin/AppData/Local/bazelisk
/Users/runneradmin/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/checkout@v4
- run: 'bazel build --config=ci //:ecsact'
- run: 'Copy-Item .\bazel-bin\ecsact.exe -Destination .\ecsact_${{ github.ref_name }}_windows_x64.exe'
- run: 'gh release upload ${{ github.ref_name }} ./ecsact_${{ github.ref_name }}_windows_x64.exe'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}