Skip to content

Commit b8c9ede

Browse files
author
viable
committed
workflow update, release 0.0.1
1 parent f6c22e9 commit b8c9ede

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- 'v*'
79
pull_request:
810

911
jobs:
@@ -32,3 +34,23 @@ jobs:
3234
path: zig-out/bin/*
3335
if-no-files-found: error
3436
compression-level: 6
37+
38+
release:
39+
needs: build
40+
if: startsWith(github.ref, 'refs/tags/')
41+
runs-on: ubuntu-latest
42+
permissions:
43+
contents: write
44+
steps:
45+
- name: Download artifact
46+
uses: actions/download-artifact@v4
47+
with:
48+
name: lifetch
49+
path: lifetch-bin
50+
51+
- name: Create Release
52+
uses: elgohr/Github-Release-Action@v5
53+
env:
54+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
with:
56+
title: Release ${{ github.ref_name }}

0 commit comments

Comments
 (0)