Skip to content

Don't stumble over yara syntax errors #39

Don't stumble over yara syntax errors

Don't stumble over yara syntax errors #39

Workflow file for this run

name: Build static Debian package
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Test
run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
- name: Get release
id: get_release
uses: bruceadams/get-release@v1.2.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: get_version
uses: battila7/get-version-action@v2
- name: build x86_64-unknown-linux-musl
uses: janstarke/cargo-deb-amd64-ubuntu@v1.66.1
with:
cmd: bash build/pre.sh; cargo deb --target=x86_64-unknown-linux-musl
- name: Upload Release Asset
id: upload-debfile
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: ./target/x86_64-unknown-linux-musl/debian/${{ github.event.repository.name }}_${{ steps.get_version.outputs.version-without-v }}_amd64.deb
asset_name: ${{ github.event.repository.name }}_${{ steps.get_version.outputs.version-without-v }}_amd64.deb
asset_content_type: application/vnd.debian.binary-package