Skip to content

Commit 2c0835e

Browse files
committed
chore(infra): rename ci workflow and tag releases
Why: - ensure tag pushes create GitHub releases - standardize workflow filename Impact: - uploads raw binaries to releases on tags - removes website deploy workflow - Tests: just check
1 parent d095ce6 commit 2c0835e

2 files changed

Lines changed: 41 additions & 70 deletions

File tree

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
push:
66
branches:
77
- main
8+
tags:
9+
- "*"
810
workflow_dispatch:
911

1012
jobs:
@@ -41,7 +43,7 @@ jobs:
4143
cp target/aarch64-unknown-linux-musl/release/intar-agent prebuilt-agents/intar-agent-aarch64
4244
4345
- name: Upload prebuilt agents
44-
uses: actions/upload-artifact@v4
46+
uses: actions/upload-artifact@v6
4547
with:
4648
name: intar-agent-musl
4749
path: prebuilt-agents
@@ -82,7 +84,7 @@ jobs:
8284
uses: actions/checkout@v6
8385

8486
- name: Download prebuilt agents
85-
uses: actions/download-artifact@v4
87+
uses: actions/download-artifact@v7
8688
with:
8789
name: intar-agent-musl
8890
path: prebuilt-agents
@@ -121,7 +123,7 @@ jobs:
121123

122124
build:
123125
name: Build - ${{ matrix.platform.os-name }}
124-
if: github.ref == 'refs/heads/main'
126+
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
125127
needs: prebuild-agents
126128
env:
127129
INTAR_AGENT_X86_64_PATH: ${{ github.workspace }}/prebuilt-agents/intar-agent-x86_64
@@ -161,7 +163,7 @@ jobs:
161163
uses: actions/checkout@v6
162164

163165
- name: Download prebuilt agents
164-
uses: actions/download-artifact@v4
166+
uses: actions/download-artifact@v7
165167
with:
166168
name: intar-agent-musl
167169
path: prebuilt-agents
@@ -207,11 +209,41 @@ jobs:
207209
args: "--locked --release --package intar-cli --bin intar"
208210
strip: true
209211

210-
- name: Upload binary
211-
uses: actions/upload-artifact@v4
212+
- name: Upload binary (Unix)
213+
if: runner.os != 'Windows'
214+
uses: actions/upload-artifact@v6
215+
with:
216+
name: intar-${{ matrix.platform.target }}
217+
path: target/${{ matrix.platform.target }}/release/intar
218+
219+
- name: Upload binary (Windows)
220+
if: runner.os == 'Windows'
221+
uses: actions/upload-artifact@v6
222+
with:
223+
name: intar-${{ matrix.platform.target }}
224+
path: target/${{ matrix.platform.target }}/release/intar.exe
225+
226+
release:
227+
name: Release
228+
if: startsWith(github.ref, 'refs/tags/')
229+
needs: build
230+
runs-on: ubuntu-24.04
231+
permissions:
232+
contents: write
233+
steps:
234+
- name: Download build artifacts
235+
uses: actions/download-artifact@v7
236+
with:
237+
pattern: intar-*
238+
path: dist
239+
240+
- name: Create GitHub release
241+
uses: softprops/action-gh-release@v2
212242
with:
213-
name: intar-${{ matrix.platform.os-name }}
214-
path: target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }}
243+
files: |
244+
dist/*/intar
245+
dist/*/intar.exe
246+
generate_release_notes: true
215247

216248
e2e:
217249
name: E2E - ${{ matrix.os-name }}
@@ -235,7 +267,7 @@ jobs:
235267
uses: actions/checkout@v6
236268

237269
- name: Download prebuilt agents
238-
uses: actions/download-artifact@v4
270+
uses: actions/download-artifact@v7
239271
with:
240272
name: intar-agent-musl
241273
path: prebuilt-agents

.github/workflows/deploy-website.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)