(master) deploy to k8s #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# required permissions: repo read/write ( Actions>General>Workflow permissions) | |
name: Build | |
on: | |
workflow_dispatch: {} | |
push: | |
branches: | |
- master | |
env: | |
binary: gitbounties_backend | |
jobs: | |
release_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: little-core-labs/get-git-tag@v3.0.1 | |
id: get_version | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: x86_64-unknown-linux-gnu | |
override: true | |
- name: download solc | |
run: | | |
sudo add-apt-repository ppa:ethereum/ethereum | |
sudo apt-get update | |
sudo apt-get install solc | |
- name: Build | |
run: | | |
cargo build --release --target x86_64-unknown-linux-gnu | |
- name: Upload binary to release | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
release_name: nightly build ${{ github.sha }} | |
prerelease: false | |
make_latest: true | |
body: Development build | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: target/x86_64-unknown-linux-gnu/release/${{ env.binary }} | |
asset_name: ${{ env.binary }} | |
tag: ${{ github.ref }} | |
overwrite: true |