|
1 | | -name: Release |
| 1 | +name: Release opensuse amd64 |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
@@ -54,44 +54,25 @@ jobs: |
54 | 54 | for arch in amd64; do |
55 | 55 | GOARCH=$arch go build -v -x \ |
56 | 56 | -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 \ |
58 | 58 | . |
59 | 59 | done |
60 | 60 |
|
61 | 61 | - name: Inspect binary |
62 | 62 | 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 :/" |
66 | 66 |
|
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 |
70 | 69 | 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 |
73 | 76 | draft: false |
74 | 77 | 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 |
97 | 78 |
|
0 commit comments