Skip to content

Commit 4f0ff3d

Browse files
committed
up actions and release
1 parent 8baea92 commit 4f0ff3d

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: CI Builds
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
release:
47

58
permissions:
69
contents: write
@@ -13,7 +16,7 @@ jobs:
1316
os: [windows-latest, ubuntu-latest]
1417
steps:
1518
- name: Checkout
16-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
1720

1821
- name: Setup Rust
1922
shell: bash
@@ -31,10 +34,22 @@ jobs:
3134
cargo build --release
3235
mv target/release/hexsaly target/release/hexsaly.bin
3336
fi
34-
37+
3538
- name: Upload artifact
36-
uses: actions/upload-artifact@v4
39+
uses: actions/upload-artifact@v6
3740
with:
3841
name: Hexsaly-${{ matrix.os == 'ubuntu-latest' && 'Linux' || 'Windows' }}
3942
path: target/release/hexsaly${{ matrix.os == 'windows-latest' && '.exe' || '.bin' }}
40-
if-no-files-found: error
43+
if-no-files-found: error
44+
45+
- name: Release
46+
uses: softprops/action-gh-release@v3
47+
if: github.ref_type == 'tag'
48+
with:
49+
body: |
50+
# Hexsaly ${{ github.ref }}
51+
52+
53+
[![action](https://img.shields.io/badge/build-action-brightgreen?style=for-the-badge&logo=cargo&labelColor=%231e1e2e&color=%23a6e3a1)](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
54+
55+
files: target/release/hexsaly*

0 commit comments

Comments
 (0)