Skip to content

Commit

Permalink
Allow entering specific JQ version to bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Aug 17, 2024
1 parent d6fe2a8 commit 39f68fe
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ name: publish
on:
release:
types: [released]
workflow_dispatch:
inputs:
jq:
description: 'Version of JQ to bundle'

env:
DOTNET_NOLOGO: true
Configuration: Release
PackOnBuild: true
GeneratePackageOnBuild: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
JQVERSION: ${{ github.event.inputs.jq || github.event.release.tag_name }}

jobs:
publish:
Expand All @@ -26,11 +31,11 @@ jobs:

- name: ⏬ download
run: |
echo "Downloading jq release tag jq-${GITHUB_REF##*/v}"
gh release download "jq-${GITHUB_REF##*/v}" --dir src/JQ/tools --clobber -p jq-linux-a*64 --repo jqlang/jq
gh release download "jq-${GITHUB_REF##*/v}" --dir src/JQ/tools --clobber -p jq-linux-i386 --repo jqlang/jq
gh release download "jq-${GITHUB_REF##*/v}" --dir src/JQ/tools --clobber -p jq-macos* --repo jqlang/jq
gh release download "jq-${GITHUB_REF##*/v}" --dir src/JQ/tools --clobber -p jq-windows-* --repo jqlang/jq
echo "Downloading jq release tag jq-${JQVERSION##*/v}"
gh release download "jq-${JQVERSION##*/v}" --dir src/JQ/tools --clobber -p jq-linux-a*64 --repo jqlang/jq
gh release download "jq-${JQVERSION##*/v}" --dir src/JQ/tools --clobber -p jq-linux-i386 --repo jqlang/jq
gh release download "jq-${JQVERSION##*/v}" --dir src/JQ/tools --clobber -p jq-macos* --repo jqlang/jq
gh release download "jq-${JQVERSION##*/v}" --dir src/JQ/tools --clobber -p jq-windows-* --repo jqlang/jq
- name: 🙏 build
run: dotnet build -m:1 -p:version=${GITHUB_REF##*/v} -bl:build.binlog
Expand Down

0 comments on commit 39f68fe

Please sign in to comment.