-
Notifications
You must be signed in to change notification settings - Fork 281
47 lines (37 loc) · 1.14 KB
/
release-sidebar.yml
File metadata and controls
47 lines (37 loc) · 1.14 KB
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
46
47
name: Release Sidebar Helper
on:
workflow_dispatch:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
linux-x86_64:
name: Linux x86_64 sidebar helper
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Test sidebar crate
run: cargo test --manifest-path tools/ccb-agent-sidebar/Cargo.toml
- name: Build release sidebar helper
run: bin/build-ccb-agent-sidebar
- name: Stage artifact
run: bin/package-ccb-agent-sidebar-release
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ccb-agent-sidebar-linux-x86_64
path: |
dist/ccb-agent-sidebar-linux-x86_64.tar.gz
dist/ccb-agent-sidebar-linux-x86_64.tar.gz.sha256
- name: Attach to GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
dist/ccb-agent-sidebar-linux-x86_64.tar.gz
dist/ccb-agent-sidebar-linux-x86_64.tar.gz.sha256