Skip to content

seperate linux and windows artifact upload #3

seperate linux and windows artifact upload

seperate linux and windows artifact upload #3

name: Build Binary Artifacts
on:
workflow_dispatch:
push:
branches:
- main
- build-workflow
paths:
- 'lib/**'
- 'index.js'
- 'build.sh'
- '.github/workflows/build-binary-artifacts.yml'
# tags:
# - 1.**
jobs:
build-binary-artifacts-and-sign:
name: Build binary artifacts, sign, export
runs-on: ubuntu-latest
steps:
- name: Install Script Dependencies
run: |
sudo apt-get update
sudo apt-get install -y jq zip tar gpg
npm install -g pkg
- name: Check out the repo
uses: actions/checkout@v3
with:
ref: main
fetch-depth: 0
- name: run build script
id: run-build-script
run: ./build.sh
- name: Upload Windows artifact
uses: actions/upload-artifact@v3
with:
name: binary-artifacts
path: ./dist/*.zip
if-no-files-found: error
- name: Upload Linux artifact
uses: actions/upload-artifact@v3
with:
name: binary-artifacts
path: ./dist/*.tar.gz
if-no-files-found: error