Github Release #8
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
# release package | |
name: Main | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build-binaries: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
strategy: | |
matrix: | |
arch: [x64,arm64] | |
platform: [linux,macos] | |
#exclude: | |
# - arch: arm64 | |
# platform: windows | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: depot/setup-action@v1 | |
- name: Build using Docker (with depot) | |
run: depot build --project 12nj5b3bl4 --build-arg CLI_TARGET=node18-${{ matrix.platform }}-${{ matrix.arch }} -f Dockerfile.cli --target=cli --output=type=local,dest=./preevy-bin --progress=plain --platform=linux/${{ matrix.arch == 'x64' && 'amd64' || matrix.arch }} . | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ./preevy-bin/** | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: depot/setup-action@v1 | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
path: ./preevy-bin | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body: "Release ${{ github.ref }}" | |
draft: true | |
prerelease: true | |
files: | | |
./preevy-bin/** |