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 name: Release Artifacts
# test release artifacts from workflow
on: on:
push: push:
paths-ignore: paths-ignore:
- 'docs/**' - 'docs/**'
- 'scripts/**' - 'scripts/**'
- 'README.md' - 'README.md'
branches: branches: ["*", "main"]
- "release*"
- "!main"
pull_request: pull_request:
branches: branches: ["*", "main"]
- "release*"
- "!main"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install dependencies
run: sudo apt install -y libssl-dev build-essential libgpgme-dev
- name: Extract branch name - name: Extract branch name
shell: bash shell: bash
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >>$GITHUB_OUTPUT
id: extract_branch id: extract_branch
- uses: actions/checkout@v3 - 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 - uses: actions/upload-artifact@v3
with: with:
name: release name: nevmes-x86_64-linux-gnu-${{ steps.extract_branch.outputs.branch }}
path: nevmes/nevmes-x86_64-linux-gnu-v${{ 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 #!/bin/bash
# Build nevmes release # Build nevmes release
# Run from the nevmes root # 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 output directory
LINUX_X86_64="x86_64-linux-gnu" 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" LINUX_OUTPUT_DIR=".build/release/$RELEASE_NAME"
mkdir -p $LINUX_OUTPUT_DIR mkdir -p $LINUX_OUTPUT_DIR