Skip to content

Commit

Permalink
chore: release should trigger s3 upload
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeach committed Nov 13, 2023
1 parent 040d5c4 commit f6b04d8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,13 @@ jobs:
asset_path: ./build/dist/${{ matrix.os }}_${{ matrix.arch }}/avm
asset_name: avm-${{ matrix.os }}-${{ matrix.arch }}
asset_content_type: binary/octet-stream

run-s3-releaser:
name: Trigger S3 Releaser Repository
needs:
- compile
runs-on: ubuntu-latest
steps:
- name: Dispatch update event to releaser repository
run: |
curl -X POST -H "Authorization: token ${{ secrets.ARMORY_PLATFORM_GITHUB_PAT_TOKEN }}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/armory-io/armory-cli-releaser/dispatches --data "{\"event_type\": \"ReleaseAvm\", \"client_payload\": {\"release_tag\": \"${{ github.ref_name }}\"}}"
2 changes: 1 addition & 1 deletion get-armory-cli
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fi

echo "Detected ${OS}-${ARCH}, preparing to install Armory Version Manager and Armory CLI"

DOWNLOAD_URL=https://armory-cli-releases.s3.amazonaws.com/avm/v1.2.0/avm-${OS}-${ARCH}
DOWNLOAD_URL=https://armory-cli-releases.s3.amazonaws.com/avm/latest/avm-${OS}-${ARCH}
DEST_DIR="${HOME}/.avm/bin"
mkdir -p "$DEST_DIR"
DEST="${DEST_DIR}/avm"
Expand Down

0 comments on commit f6b04d8

Please sign in to comment.