Skip to content

Commit 54fdc93

Browse files
chore(action): fix publish action
1 parent a048732 commit 54fdc93

1 file changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,44 @@ jobs:
4747
~/go/pkg/mod
4848
~/.cache/go-build
4949
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
50+
5051
# -------------------------
51-
# Install ncap
52+
# Install libpcap
5253
# -------------------------
5354
- name: Install libpcap
5455
run: sudo apt-get update && sudo apt-get install -y libpcap-dev
56+
5557
# -------------------------
5658
# Build project
5759
# -------------------------
5860
- name: Build using Makefile
5961
run: make build
6062

6163
# -------------------------
62-
# Create zip artifact
64+
# Verify build output
65+
# -------------------------
66+
- name: Verify release folder
67+
run: |
68+
echo "Contents of project:"
69+
ls -R
70+
echo "Contents of release directory:"
71+
ls -R release
72+
73+
# -------------------------
74+
# Package release
6375
# -------------------------
6476
- name: Package release
6577
run: |
6678
VERSION=${GITHUB_REF_NAME}
67-
zip -r release-${VERSION}.zip release
79+
zip -r Hypervisor-${VERSION}.zip release
6880
6981
# -------------------------
70-
# Create GitHub Release
82+
# Publish GitHub Release
7183
# -------------------------
7284
- name: Publish Release
7385
uses: softprops/action-gh-release@v2
7486
with:
7587
name: Hypervisor ${{ github.ref_name }}
76-
files: Hypervisor-*.zip
77-
88+
files: Hypervisor-${{ github.ref_name }}.zip
89+
env:
90+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)