mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Experiment with output matrix
This commit is contained in:
parent
2c025be79f
commit
2d163735a4
1 changed files with 32 additions and 2 deletions
34
.github/workflows/draft-release.yml
vendored
34
.github/workflows/draft-release.yml
vendored
|
@ -45,7 +45,7 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
release_name: "Release v${{ inputs.version }}"
|
||||
release_name: "Release v${{ inputs.salt-version }}"
|
||||
tag_name: v${{ inputs.salt-version }}
|
||||
draft: true
|
||||
prerelease: false
|
||||
|
@ -53,7 +53,7 @@ jobs:
|
|||
run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
list-source-tarball:
|
||||
name: Add Source Tarball to Release
|
||||
name: List Source Tarball Artifacts
|
||||
needs:
|
||||
- create-github-release
|
||||
runs-on: ubuntu-22.04
|
||||
|
@ -97,6 +97,36 @@ jobs:
|
|||
asset_name: ${{ matrix.file }}
|
||||
asset_content_type: ${{ steps.file-type.outputs.file_type }}
|
||||
|
||||
list-onedir-linux:
|
||||
name: List Onedir Artifacts Linux
|
||||
runs-on: ubuntu-22.04
|
||||
needs:
|
||||
- create-github-release
|
||||
outputs:
|
||||
${{ matrix.arch }}-files: ${{ steps.list-files.outputs.files }}
|
||||
strategy:
|
||||
matrix:
|
||||
include: ${{ fromJSON(inputs.matrix)['linux'] }}
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-onedir-linux-${{ matrix.arch }}.tar.xz
|
||||
path: artifacts
|
||||
- id: list-files
|
||||
run: |
|
||||
echo ${{ matrix.arch }}-files="$(find artifacts -maxdepth 1 -type f -printf '%f\n' | jq -Rnc '[inputs | { file: "\(.)" }]')" >> "$GITHUB_OUTPUT"
|
||||
|
||||
# upload-onedir-linux:
|
||||
# name: Upload Onedir Packages Linux
|
||||
# runs-on: ubuntu-22.04
|
||||
# needs:
|
||||
# - create-github-release
|
||||
# - list-onedir-linux
|
||||
# strategy:
|
||||
# matrix:
|
||||
# include: ${{ fromJSON(needs.list-onedir-linux.outputs.files) }}
|
||||
|
||||
|
||||
release-artifacts:
|
||||
name: Download and list all artifacts
|
||||
runs-on: ubuntu-22.04
|
||||
|
|
Loading…
Add table
Reference in a new issue