Skip to content

Commit 76b9b3d

Browse files
committed
release asset was created
1 parent f263b26 commit 76b9b3d

1 file changed

Lines changed: 39 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,42 @@ jobs:
2323
uses: actions/checkout@v4
2424

2525
- name: Build
26-
run: cargo build --release --verbose
26+
run: cargo build --release --verbose
27+
28+
- name: Copy release binary to root
29+
shell: bash
30+
run: |
31+
pwd
32+
if [[ -f "target/release/singen" ]]; then
33+
cp target/release/singen .
34+
elif [[ -f "target/release/singen.exe" ]]; then
35+
cp target/release/singen .
36+
else
37+
echo "No binary to copy for this OS."
38+
fi
39+
40+
- name: Compress tar.gz
41+
uses: ksm2/archive-action@v1
42+
with:
43+
name: "${{ env.FILENAME }}"
44+
format: "tar.gz"
45+
include: "{singen,singen.exe,README.md}"
46+
47+
- name: Compress zip
48+
uses: ksm2/archive-action@v1
49+
with:
50+
name: "${{ env.FILENAME }}"
51+
format: "zip"
52+
include: "{rapidrecast,rapidrecast.exe,README.md,LICENSE}"
53+
54+
- name: Create or Update Release
55+
env:
56+
VERSION: ${{ needs.prepare-release.outputs.rr_cargo_version }}
57+
WORKFLOW_GIT_TAG: ${{ needs.prepare-release.outputs.workflow_git_tag}}
58+
uses: ncipollo/release-action@v1
59+
with:
60+
artifacts: "${{ env.FILENAME }}.tar.gz,${{ env.FILENAME }}.zip"
61+
allowUpdates: 'true'
62+
generateReleaseNotes: 'true'
63+
token: ${{ secrets.RELEASE_TOKEN }}
64+
tag: ${{ env.WORKFLOW_GIT_TAG }}

0 commit comments

Comments
 (0)