fix: fixed generation, only needs private #84
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: Build Linux | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Version Overwrite | |
required: false | |
push: | |
tags: | |
- "v*" | |
pull_request: | |
env: | |
VERSION: ${{ github.event.inputs.version || (startsWith(github.ref, 'refs/tags/') && github.ref || '') }} | |
jobs: | |
binding: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: docker-practice/actions-setup-docker@master | |
- name: Build | |
run: make binding_linux | |
- name: Compress | |
run: tar -czvf output.tar.gz -C output/binding/linux . | |
- if: ${{ env.VERSION!='' }} | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
asset_name: libopenpgp_bridge_linux_$tag.tar.gz | |
file: output.tar.gz | |
tag: ${{ env.VERSION }} | |
overwrite: true | |
- if: ${{ env.VERSION=='' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: libopenpgp_bridge_linux | |
path: output.tar.gz |