-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.5 KB
/
ui-release2.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
43
44
45
name: UiRelease2LinuxX64
on:
workflow_dispatch:
jobs:
ui-release-2-linux-x64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# - name: Build Docker Image
# uses: docker/build-push-action@v3
# with:
# tags: dockbuildrust:latest
# context: docker/ui-release
# push: false
# - name: Build Executable
# uses: addnab/docker-run-action@v3
# with:
# image: dockbuildrust:latest
# options: -v ${{ github.workspace }}:/work
# run: /root/.cargo/bin/cargo build --release --manifest-path hc-reliability-ui/Cargo.toml
- name: Version
id: version
run: |
VER=$(grep version hc-reliability-ui/Cargo.toml | cut -d '"' -f 2)
echo SETTING VERSION ${VER}
echo "version=${VER}" >> $GITHUB_OUTPUT
- name: Barf
run: |
mkdir -p target/release
echo "barf" > target/release/hc-reliability-ui
- name: Publish Release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/hc-reliability-ui
asset_name: hc-reliability-ui
tag: "hc-reliability-ui-v${{ steps.version.outputs.version }}"
overwrite: true
body: "hc-reliability-ui release v${{ steps.version.outputs.version }}"