Skip to content

Commit

Permalink
chore: release should trigger s3 upload (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeach authored Nov 13, 2023
1 parent 040d5c4 commit 7a5dbf7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@ jobs:
upload_url: ${{ needs.create-release.outputs.release-url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build/dist/${{ matrix.os }}_${{ matrix.arch }}/avm
asset_name: avm-${{ matrix.os }}-${{ matrix.arch }}
asset_content_type: binary/octet-stream
asset_content_type: binary/octet-stream
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,18 @@ Armory Version Manager - A utility to manage the Armory CLI.
go to https://github.com/armory/avm/releases/latest download the release for your OS and Arch and mark it executable and place it in your path.

# Usage
See the [generated docs](docs/avm.md) or the help output of the CLI
See the [generated docs](docs/avm.md) or the help output of the CLI

# Release Process

The AVM install script pulls artifacts from S3. Run the following command to kick off the S3 release workflow:

```shell
export RELEASE_TAG=vx.y.z
curl -X POST \
-H "Authorization: token $(gh auth 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\": \"$RELEASE_TAG\"}}"
```
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 7a5dbf7

Please sign in to comment.