mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-08-21 15:27:14 +00:00
Fix docker build
This commit is contained in:
37
.github/workflows/build-push.yml
vendored
37
.github/workflows/build-push.yml
vendored
@@ -84,7 +84,7 @@ jobs:
|
|||||||
release_name: Release ${{ github.ref }}
|
release_name: Release ${{ github.ref }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- name: Upload binary assets
|
- name: Prepare release downloading
|
||||||
run: |
|
run: |
|
||||||
mkdir artifacts
|
mkdir artifacts
|
||||||
- name: Download Linux binary
|
- name: Download Linux binary
|
||||||
@@ -92,17 +92,26 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: desubot
|
name: desubot
|
||||||
path: ./artifacts/
|
path: ./artifacts/
|
||||||
- name: Upload binary assets
|
# - name: Upload binary assets
|
||||||
run: |
|
# run: |
|
||||||
wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2
|
# wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2
|
||||||
tar xjf linux-amd64-github-release.tar.bz2
|
# tar xjf linux-amd64-github-release.tar.bz2
|
||||||
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
# export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
||||||
for artifact in ./artifacts/*; do
|
# for artifact in ./artifacts/*; do
|
||||||
./bin/linux/amd64/github-release upload \
|
# ./bin/linux/amd64/github-release upload \
|
||||||
-u ${{ steps.get_repo_data.outputs.AUTHOR }} \
|
# -u ${{ steps.get_repo_data.outputs.AUTHOR }} \
|
||||||
-r ${{ steps.get_repo_data.outputs.REPO_NAME }} \
|
# -r ${{ steps.get_repo_data.outputs.REPO_NAME }} \
|
||||||
--tag ${{ steps.get_version.outputs.FULL_TAG }} \
|
# --tag ${{ steps.get_version.outputs.FULL_TAG }} \
|
||||||
--name ${artifact} \
|
# --name ${artifact} \
|
||||||
--file ${artifact}
|
# --file ${artifact}
|
||||||
done
|
# done
|
||||||
|
- name: Upload Release Asset
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ needs.publish.outputs.upload_url }}
|
||||||
|
asset_path: ./artifacts/*
|
||||||
|
asset_name: desubot-linux-amd64
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user