Refactor build.yaml to simplify go build command
This commit is contained in:
parent
b5e6fbf388
commit
048e31987f
@ -54,7 +54,7 @@ jobs:
|
||||
go mod download
|
||||
- name: Build Binary
|
||||
run: |
|
||||
go build -o $(basename ${{ gitea.repository }}) .
|
||||
go build .
|
||||
- name: Upload binary to soaska.ru
|
||||
run: |
|
||||
package_name=$(basename ${{ gitea.repository }})
|
||||
@ -64,5 +64,5 @@ jobs:
|
||||
echo "package_name: $package_name" "branch_name: $branch_name" "current_date: $current_date"
|
||||
|
||||
curl --user ${{ secrets.username }}:${{ secrets.password }} \
|
||||
--upload-file $package_name \
|
||||
--upload-file MinIO-Share-S3 \
|
||||
https://soaska.ru/api/packages/${{ secrets.username }}/generic/$package_name-$branch_name/¤t_date/$package_name
|
Loading…
Reference in New Issue
Block a user