Skip to content

Deploy

Deploy #545

Workflow file for this run

on:
workflow_run:
workflows: [ "Test" ]
types: [ completed ]
name: Deploy
jobs:
musl:
name: Deploy Binary (musl)
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v2
name: Checkout 🛎️
- uses: actions-rs/toolchain@v1
name: Setup Cargo Toolchain 🛎️
with:
profile: minimal
toolchain: stable
target: x86_64-unknown-linux-musl
default: true
- run: sudo apt-get install -y musl-tools
name: Setup musl 🔧
- uses: Swatinem/rust-cache@v1
- run: cargo build --release --target x86_64-unknown-linux-musl
name: Build Release Binary 🚀
- run: cp target/x86_64-unknown-linux-musl/release/chi-tg-inline-rs ./
- uses: actions/upload-artifact@v2
name: Upload Artifact
with:
name: release-musl
path: chi-tg-inline-rs
- run: |
curl -XPOST -u "PhotonQuantum:${{secrets.GH_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/PhotonQuantum/aquarium/dispatches --data '{"event_type": "deploy"}'
name: Launch 🚀