neveko/.github/workflows/release.yml

28 lines
878 B
YAML
Raw Normal View History

name: cargo-build-release
2023-05-05 07:57:24 +00:00
on:
push:
paths-ignore:
- 'docs/**'
- 'scripts/**'
- 'README.md'
2023-05-06 03:49:22 +00:00
branches: ["v0.*", "!main", "!dev"]
pull_request:
2023-05-06 03:49:22 +00:00
branches: ["v0.*", "!main", "!dev"]
jobs:
build:
runs-on: ubuntu-latest
steps:
2023-05-05 07:57:24 +00:00
- 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
2023-05-05 07:57:24 +00:00
- run: ./scripts/build_release.sh ${{ steps.extract_branch.outputs.branch }}
- uses: actions/upload-artifact@v3
with:
2023-06-03 14:17:58 +00:00
name: neveko-x86_64-linux-gnu-${{ steps.extract_branch.outputs.branch }}
path: neveko-x86_64-linux-gnu-${{ steps.extract_branch.outputs.branch }}.tar.bz2