Skip to content

Commit

Permalink
fix: trying to upload assets
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Mar 20, 2022
1 parent 78b57b4 commit 8fb049d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,21 @@ jobs:
with:
go-version: '^1.18'

- name: Create release archive
- name: Create archive
if: ${{ steps.release.outputs.release_created }}
run: |
cd core || exit 1
ls -lah
bash ./emp3r0r --release || exit 2
mv emp3r0r.tar.xz emp3r0r-v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.tar.xz || exit 3
ls -lah
curl --data-binary @emp3r0r-v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.tar.xz -X POST -d "name=emp3r0r-v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}.tar.xz" -H "Accept: application/x-xz" ${{ steps.release.outputs.upload_url }} || exit 4
- uses: PeerXu/upload-asset@v1
with:
file: ./core/emp3r0r.tar.xz
os: linux
arch: amd64
with_tag: true
with_sha1: true
suffix: .tar.xz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8fb049d

Please sign in to comment.