Skip to content

Commit ed4a8f6

Browse files
committed
updating workflows to update release
1 parent 27d3ef1 commit ed4a8f6

File tree

2 files changed

+14
-33
lines changed

2 files changed

+14
-33
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Release opensuse amd64
22

33
on:
44
push:
@@ -54,44 +54,25 @@ jobs:
5454
for arch in amd64; do
5555
GOARCH=$arch go build -v -x \
5656
-ldflags "-X 'github.com/sarus-suite/parallax/version.Version=${{ github.ref_name }}'" \
57-
-o dist/parallax-${{ github.ref_name }}-linux-$arch \
57+
-o dist/parallax-${{ github.ref_name }}-opensuse-15.5-$arch \
5858
.
5959
done
6060
6161
- name: Inspect binary
6262
run: |
63-
file dist/parallax-${{ github.ref_name }}-linux-amd64
64-
readelf -l dist/parallax-${{ github.ref_name }}-linux-amd64 | grep interpreter || true
65-
ldd dist/parallax-${{ github.ref_name }}-linux-amd64 || echo "static :/"
63+
file dist/parallax-${{ github.ref_name }}-opensuse-15.5-amd64
64+
readelf -l dist/parallax-${{ github.ref_name }}-opensuse-15.5-amd64 | grep interpreter || true
65+
ldd dist/parallax-${{ github.ref_name }}-opensuse-15.5-amd64 || echo "static :/"
6666
67-
- name: Create GitHub Release
68-
id: create_release
69-
uses: actions/create-release@v1
67+
- name: Create or Update GitHub Release and Upload Asset
68+
uses: ncipollo/release-action@v1
7069
with:
71-
tag_name: ${{ github.ref_name }}-a
72-
release_name: Release ${{ github.ref_name }}-a
70+
token: ${{ secrets.GITHUB_TOKEN }}
71+
tag: ${{ github.ref_name }}
72+
name: Release ${{ github.ref_name }}
73+
artifacts: dist/parallax-${{ github.ref_name }}-opensuse-15.5-*-*
74+
allowUpdates: true
75+
replacesArtifacts: true
7376
draft: false
7477
prerelease: false
75-
env:
76-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77-
78-
- name: Upload amd64 binary
79-
uses: actions/upload-release-asset@v1
80-
env:
81-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82-
with:
83-
upload_url: ${{ steps.create_release.outputs.upload_url }}
84-
asset_path: dist/parallax-${{ github.ref_name }}-linux-amd64
85-
asset_name: parallax-${{ github.ref_name }}-linux-amd64
86-
asset_content_type: application/octet-stream
87-
88-
# - name: Upload arm64 binary
89-
# uses: actions/upload-release-asset@v1
90-
# env:
91-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92-
# with:
93-
# upload_url: ${{ steps.create_release.outputs.upload_url }}
94-
# asset_path: dist/parallax-${{ github.ref_name }}-linux-arm64
95-
# asset_name: parallax-${{ github.ref_name }}-linux-arm64
96-
# asset_content_type: application/octet-stream
9778

.github/workflows/ubuntu_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Ubuntu amd64 pipeline
22

33
on:
44
push:

0 commit comments

Comments
 (0)