Skip to content

tunnel server: return tunnel meta in api (#200) #42

tunnel server: return tunnel meta in api (#200)

tunnel server: return tunnel meta in api (#200) #42

Workflow file for this run

# release package
name: Github Release
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,win]
exclude:
- platform: win # need to debug it
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: depot/setup-action@v1
with:
oidc: true
- name: Build using Docker (with depot)
run: mkdir preevy-bin && depot build --project ${{ vars.DEPOT_PROJECT_ID }} --build-arg CLI_TARGET=${{ matrix.platform }}-${{ matrix.arch }} -f Dockerfile.cli --target=cli --output=type=tar,dest=./preevy-bin/preevy-${{ matrix.platform }}-${{ matrix.arch }}.tar.gz --progress=plain --platform=linux/${{ matrix.arch == 'x64' && 'amd64' || matrix.arch }} .
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: preevy-bin
path: ./preevy-bin/**
release:
runs-on: ubuntu-latest
needs: build-binaries
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: depot/setup-action@v1
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: preevy-bin
path: ./preevy-bin
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
draft: true # ${{ !startsWith(github.ref, 'refs/tags/') }}
prerelease: true # ${{ !startsWith(github.ref, 'refs/tags/') }}
files: |
./preevy-bin/**