mirror of
https://github.com/jb55/nostril.git
synced 2024-11-24 08:59:08 -05:00
5d55b929d3
push detects version tags detect v*.*.* and version release candidates v*.*.*-rc**
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: ubuntu-pre-release
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
- '**pre-release**'
|
|
|
|
workflow_dispatch:
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
pre-release:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: styfle/cancel-workflow-action@0.11.0
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
- uses: actions/checkout@v2
|
|
- name: "printenv"
|
|
run: |
|
|
printenv
|
|
- name: "Build pre-release"
|
|
run: |
|
|
make
|
|
mv nostril nostril-$RUNNER_OS-$RUNNER_ARCH
|
|
shasum -a 256 nostril-$RUNNER_OS-$RUNNER_ARCH > nostril-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
|
|
mv nostril-query nostril-query-$RUNNER_OS-$RUNNER_ARCH
|
|
shasum -a 256 nostril-query-$RUNNER_OS-$RUNNER_ARCH > nostril-query-$RUNNER_OS-$RUNNER_ARCH.sha256.txt
|
|
ls -a
|
|
- name: Save state
|
|
run: echo "{name}={value}" >> $GITHUB_STATE
|
|
- name: Set output
|
|
run: echo "{name}={value}" >> $GITHUB_OUTPUT
|
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
with:
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
automatic_release_tag: ${{ matrix.os }}
|
|
prerelease: true
|
|
title: "Development Build"
|
|
files: |
|
|
nostril-*
|