Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei0465 committed Feb 22, 2023
1 parent e4d31ad commit f9187f5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
CGO_ENABLED: 0
REF: ${{ github.ref }}
run: |
GOARCH=amd64 go build -o dist/sftp-server_linux_amd64 -v -trimpath github.com/kubectyl/sftp-server
chmod 755 dist/sftp-server_linux_amd64
GOARCH=arm64 go build -o dist/sftp-server_linux_arm64 -v -trimpath github.com/kubectyl/sftp-server
chmod 755 dist/sftp-server_linux_arm64
GOARCH=amd64 go build -o dist/sftp-server-linux-amd64 -v -trimpath github.com/kubectyl/sftp-server
chmod 755 dist/sftp-server-linux-amd64
GOARCH=arm64 go build -o dist/sftp-server-linux-arm64 -v -trimpath github.com/kubectyl/sftp-server
chmod 755 dist/sftp-server-linux-arm64
- name: Extract changelog
env:
Expand All @@ -37,8 +37,8 @@ jobs:
- name: Create checksum and add to changelog
run: |
SUM=`cd dist && sha256sum sftp-server_linux_amd64`
SUM2=`cd dist && sha256sum sftp-server_linux_arm64`
SUM=`cd dist && sha256sum sftp-server-linux-amd64`
SUM2=`cd dist && sha256sum sftp-server-linux-arm64`
echo -e "\n#### SHA256 Checksum\n\`\`\`\n$SUM\n$SUM2\n\`\`\`\n" >> ./RELEASE_CHANGELOG
echo -e "$SUM\n$SUM2" > checksums.txt
Expand Down Expand Up @@ -68,8 +68,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/sftp-server_linux_amd64
asset_name: sftp-server_linux_amd64
asset_path: dist/sftp-server-linux-amd64
asset_name: sftp-server-linux-amd64
asset_content_type: application/octet-stream

- name: Upload arm64 binary
Expand All @@ -78,8 +78,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/sftp-server_linux_arm64
asset_name: sftp-server_linux_arm64
asset_path: dist/sftp-server-linux-arm64
asset_name: sftp-server-linux-arm64
asset_content_type: application/octet-stream

- name: Upload checksum
Expand Down

0 comments on commit f9187f5

Please sign in to comment.