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

upload daemon to b2 on push master github action #45

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
11 changes: 7 additions & 4 deletions .github/workflows/upload-daemon.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Upload Daemon
# upload to b2 bucket earendil

on:
push:
Expand All @@ -16,16 +17,18 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env

- name: Install musl-tools
run: |
sudo apt-get update
sudo apt-get install -y musl-tools

- name: Build Linux Binary
run: |
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl

- name: Upload Linux Binary to B2
env:
B2_ACCOUNT_ID: ${{ secrets.B2_ACCOUNT_ID }}
B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }}
run: |
pip install b2
b2 authorize-account $B2_ACCOUNT_ID $B2_APPLICATION_KEY
b2 account authorize ${{ secrets.B2_ACCOUNT_ID }} ${{ secrets.B2_APPLICATION_KEY }}
b2 upload-file earendil ./target/x86_64-unknown-linux-musl/release/earendil earendil-linux-amd64
Loading