Autobuild compatibility #168
Workflow file for this run
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
name: publish | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
env: | |
RUST_BACKTRACE: full | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Publish to docs.wasmer.io | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Tools | |
run: | | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io curl tar jq | |
- name: Setup autobuild | |
run: | | |
ASSET_URL=$(curl -s -H "Authorization: token ${{ secrets.AUTOBUILD_TOKEN }}" https://api.github.com/repos/wasmerio/autobuild/releases/latest | jq '.assets[0].url') | |
curl -L --output autobuild.tar.gz -H "Accept: application/octet-stream" -H "Authorization: token ${{ secrets.AUTOBUILD_TOKEN }}" $ASSET_URL | |
tar -xzvf autobuild.tar.gz | |
chmod +x autobuild | |
- name: Publish | |
if: github.ref_name == github.event.repository.default_branch | |
run: ./autobuild build --wasmer-token ${{ secrets.WASMER_CIUSER_PROD_TOKEN }} --owner wasmer --not-depot --dont-deploy-in-docker-build . | |