Update release.yml

This commit is contained in:
c2m 2023-05-05 07:57:24 +00:00 committed by creating2morrow
parent cda642e593
commit 9e6006879f
2 changed files with 11 additions and 14 deletions

View file

@ -1,30 +1,27 @@
name: Release
# test release artifacts from workflow
name: Release Artifacts
on:
push:
paths-ignore:
- 'docs/**'
- 'scripts/**'
- 'README.md'
branches:
- "release*"
- "!main"
branches: ["*", "main"]
pull_request:
branches:
- "release*"
- "!main"
branches: ["*", "main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt install -y libssl-dev build-essential libgpgme-dev
- name: Extract branch name
shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch
- uses: actions/checkout@v3
- run: cd nevmes/ && ./scripts/build_release.sh ${{ steps.extract_branch.outputs.branch }}
- run: ./scripts/build_release.sh ${{ steps.extract_branch.outputs.branch }}
- uses: actions/upload-artifact@v3
with:
name: release
path: nevmes/nevmes-x86_64-linux-gnu-v${{ steps.extract_branch.outputs.branch }}
name: nevmes-x86_64-linux-gnu-${{ steps.extract_branch.outputs.branch }}
path: nevmes-x86_64-linux-gnu-${{ steps.extract_branch.outputs.branch }}.tar.bz2

View file

@ -1,12 +1,12 @@
#!/bin/bash
# Build nevmes release
# Run from the nevmes root
# usage: ./scripts/build_release x.x.x-ver
# usage: ./scripts/build_release vX.X.X-ver
# Linux x86_64 output directory
LINUX_X86_64="x86_64-linux-gnu"
RELEASE_NAME="nevmes-$LINUX_X86_64-v$1"
RELEASE_NAME="nevmes-$LINUX_X86_64-$1"
LINUX_OUTPUT_DIR=".build/release/$RELEASE_NAME"
mkdir -p $LINUX_OUTPUT_DIR