Skip to content
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

update-cli-token #361

Closed
wants to merge 5 commits into from
Closed
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
141 changes: 72 additions & 69 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,75 +20,71 @@ jobs:
with:
version: ${{ github.event.inputs.version }}

build_cli_aarch64-apple-darwin:
runs-on: macos-latest
name: aarch64-apple-darwin
steps:
- uses: actions/checkout@v2
- name: Install Rust 1.74.0
run: rustup toolchain install 1.74.0
- name: Set Rust 1.74.0 as default
run: rustup default 1.74.0
- name: cargo build
run: |
cargo build --target aarch64-apple-darwin --release --package web5_cli
cp -v target/aarch64-apple-darwin/release/web5_cli web5_cli-aarch64-apple-darwin
- name: upload release asset
uses: AButler/[email protected]
with:
files: web5_cli-aarch64-apple-darwin
repo-token: ${{ secrets.TBD_RELEASE_GITHUB_PERSONAL_ACCESS_TOKEN }}

build_cli_x86_64_apple_darwin:
runs-on: macos-12
name: x86_64-apple-darwin
steps:
- uses: actions/checkout@v2
- name: Install Rust 1.74.0
run: rustup toolchain install 1.74.0
- name: Set Rust 1.74.0 as default
run: rustup default 1.74.0
- name: cargo build
run: |
cargo build --target x86_64-apple-darwin --release --package web5_cli
cp -v target/x86_64-apple-darwin/release/web5_cli web5_cli-x86_64-apple-darwin
- name: upload release asset
uses: AButler/[email protected]
with:
files: web5_cli-x86_64-apple-darwin
repo-token: ${{ secrets.TBD_RELEASE_GITHUB_PERSONAL_ACCESS_TOKEN }}

build_cli_x86_64_unknown_linux_gnu:
runs-on: ubuntu-latest
name: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v2
- name: cargo build
run: |
cargo build --target x86_64-unknown-linux-gnu --release --package web5_cli
cp -v target/x86_64-unknown-linux-gnu/release/web5_cli web5_cli-x86_64-unknown-linux-gnu
- name: upload release asset
uses: AButler/[email protected]
with:
files: web5_cli-x86_64-unknown-linux-gnu
repo-token: ${{ secrets.TBD_RELEASE_GITHUB_PERSONAL_ACCESS_TOKEN }}

build_cli_x86_64_unknown_linux_musl:
runs-on: ubuntu-latest
name: x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v2
- name: Run Build Script
run: |
pushd crates/web5_cli/build/x86_64_unknown_linux_musl
./build
popd
cp target/x86_64-unknown-linux-musl/release/web5_cli web5_cli-x86_64-unknown-linux-musl
- name: upload release asset
uses: AButler/[email protected]
with:
files: web5_cli-x86_64-unknown-linux-musl
repo-token: ${{ secrets.TBD_RELEASE_GITHUB_PERSONAL_ACCESS_TOKEN }}
# build_cli_aarch64-apple-darwin:
# runs-on: macos-latest
# name: aarch64-apple-darwin
# steps:
# - uses: actions/checkout@v2
# - name: Install Rust
# run: rustup toolchain install stable
# - name: cargo build
# run: |
# cargo build --target aarch64-apple-darwin --release --package web5_cli
# cp -v target/aarch64-apple-darwin/release/web5_cli web5_cli-aarch64-apple-darwin
# - name: upload release asset
# uses: AButler/[email protected]
# with:
# files: web5_cli-aarch64-apple-darwin
# repo-token: ${{ secrets.GITHUB_TOKEN }}
#
# build_cli_x86_64_apple_darwin:
# runs-on: macos-12
# name: x86_64-apple-darwin
# steps:
# - uses: actions/checkout@v2
# - name: Install Rust
# run: rustup toolchain install stable
# - name: cargo build
# run: |
# cargo build --target x86_64-apple-darwin --release --package web5_cli
# cp -v target/x86_64-apple-darwin/release/web5_cli web5_cli-x86_64-apple-darwin
# - name: upload release asset
# uses: AButler/[email protected]
# with:
# files: web5_cli-x86_64-apple-darwin
# repo-token: ${{ secrets.GITHUB_TOKEN }}
#
# build_cli_x86_64_unknown_linux_gnu:
# runs-on: ubuntu-latest
# name: x86_64-unknown-linux-gnu
# steps:
# - uses: actions/checkout@v2
# - name: cargo build
# run: |
# cargo build --target x86_64-unknown-linux-gnu --release --package web5_cli
# cp -v target/x86_64-unknown-linux-gnu/release/web5_cli web5_cli-x86_64-unknown-linux-gnu
# - name: upload release asset
# uses: AButler/[email protected]
# with:
# files: web5_cli-x86_64-unknown-linux-gnu
# repo-token: ${{ secrets.GITHUB_TOKEN }}
#
# build_cli_x86_64_unknown_linux_musl:
# runs-on: ubuntu-latest
# name: x86_64-unknown-linux-musl
# steps:
# - uses: actions/checkout@v2
# - name: Run Build Script
# run: |
# pushd crates/web5_cli/build/x86_64_unknown_linux_musl
# ./build
# popd
# cp target/x86_64-unknown-linux-musl/release/web5_cli web5_cli-x86_64-unknown-linux-musl
# - name: upload release asset
# uses: AButler/[email protected]
# with:
# files: web5_cli-x86_64-unknown-linux-musl
# repo-token: ${{ secrets.GITHUB_TOKEN }}

git-tag:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -124,6 +120,7 @@ jobs:
- id: set-version-and-tag
name: Set version of Kotlin and commit
run: |
set -ex

# cd into the Kotlin project
cd bound/kt/
Expand Down Expand Up @@ -168,6 +165,12 @@ jobs:
versions:set \
--batch-mode \
-DnewVersion=$nextVersion

# START TESTING
git branch -r
git status
# END TESTING

git add -Av
git commit -m "[TBD Release Manager 🚀] Setting next development version after $version to: $nextVersion"
git push origin main
Expand Down
Loading