Skip to content

add version to json output #9

add version to json output

add version to json output #9

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
tags:
- '*'
permissions:
contents: write
actions: write
jobs:
build-and-release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Build Release Binary
run: cargo build --release
- name: Tree
run: tree
- name: Upload artifact
if: startsWith(github.ref, 'refs/tags/') != true
uses: actions/upload-artifact@v4
with:
name: ansible-facts
path: ./target/release/saltbox-facts
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') && github.event_name != 'pull_request'
with:
files: |
./target/release/saltbox-facts