Skip to content

[typeshare] Small fix to release script #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ dist/
.idea/
.vscode/

upload.txt
uploads.txt
dist-manifest.json
.intentionally-empty-file.o
13 changes: 11 additions & 2 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This script is used to deploy a binary to the releases page of a GitHub repository.

## Pre-requisites
`gh cli` must be installed and authenticated.
1. `gh cli` must be installed and authenticated.

Installation:
```sh
Expand All @@ -15,6 +15,15 @@ Authentication:
gh auth login
```

2. Make sure a release has already been created and triggered. To do this make sure to tag the commit with the version number.

```sh
git tag -a v1.12.0 -m "Release v1.12.0"
git push origin v1.12.0
```

3. Monitor the release pipeline here: https://github.com/gitarcode/typeshare/actions/workflows/release.yml

## Usage

```sh
Expand All @@ -33,5 +42,5 @@ Options:
## Example

```sh
./build.sh --version 1.12.0 --target aarch64-apple-darwin
./build.sh --version v1.12.0 --target aarch64-apple-darwin
```
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if [ -z "$VERSION" ]; then
fi

# Build the project
pip3 install ziglang
pip3 install ziglang --break-system-packages
cargo install cargo-zigbuild
rustup target add "${TARGET}"
cargo zigbuild --target "${TARGET}" --release
Expand Down
Loading