fleet/.github/workflows/generate-nudge-targets.yml
2025-01-09 12:08:02 -06:00

51 lines
1.5 KiB
YAML

name: Generate Nudge targets for Fleetd
on:
push:
branches:
- main
paths:
# The workflow can be triggered by modifying NUDGE_VERSION env.
- '.github/workflows/generate-nudge-targets.yml'
pull_request:
paths:
# The workflow can be triggered by modifying NUDGE_VERSION env.
- '.github/workflows/generate-nudge-targets.yml'
workflow_dispatch:
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
cancel-in-progress: true
defaults:
run:
# fail-fast using bash -eo pipefail. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
shell: bash
env:
NUDGE_VERSION: 1.1.10.81462
permissions:
contents: read
jobs:
generate-macos:
runs-on: macos-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Generate nudge.app.tar.gz
run: make nudge-app-tar-gz version=$NUDGE_VERSION out-path=.
- name: Upload nudge.app.tar.gz
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
with:
name: nudge.app.tar.gz
path: nudge.app.tar.gz