Upload pre-built binaries #10
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: Upload pre-built binaries | |
on: workflow_dispatch | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
name: Build and Upload mdns binding | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.6.1' | |
- name: Install MDNS tools | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan libavahi-compat-libdnssd-dev | |
- name: Build and upload | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.NODE_PRE_GYP_AWS_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.NODE_PRE_GYP_AWS_KEY }} | |
run: npm run build |