mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Upload more artifacts
This commit is contained in:
parent
c9253a72f8
commit
f1e08e5416
4 changed files with 78 additions and 29 deletions
83
.github/workflows/draft-release.yml
vendored
83
.github/workflows/draft-release.yml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
required: true
|
||||
type: string
|
||||
description: Json job matrix config
|
||||
build-matrix:
|
||||
required: true
|
||||
type: string
|
||||
description: Json job matrix config
|
||||
|
||||
env:
|
||||
COLUMNS: 190
|
||||
|
@ -53,36 +57,75 @@ jobs:
|
|||
run: echo "upload_url=${{ steps.create_release.outputs.upload_url }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
upload-source-tarball:
|
||||
runs-on: ubuntu-22.04
|
||||
needs:
|
||||
- create-github-release
|
||||
steps:
|
||||
- uses: ./.github/workflows/release-artifact.yml
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}.tar.gz
|
||||
upload_url: ${{ needs.create-github-release.outputs.upload_url }}
|
||||
uses: ./.github/workflows/release-artifact.yml
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}.tar.gz
|
||||
upload_url: ${{ needs.create-github-release.outputs.upload_url }}
|
||||
|
||||
upload-onedir:
|
||||
runs-on: ubuntu-22.04
|
||||
needs:
|
||||
- create-github-release
|
||||
strategy:
|
||||
matrix:
|
||||
include: ${{ inputs.matrix }}
|
||||
steps:
|
||||
- uses: ./.github/workflows/release-artifact.yml
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-onedir-${{ matrix.platform }}-${{ matrix.arch }}.${{ matrix.platform == 'windows' && 'zip' || 'tar.xz' }}
|
||||
upload_url: ${{ needs.create-github-release.outputs.upload_url }}
|
||||
include: ${{ fromJSON(inputs.matrix) }}
|
||||
uses: ./.github/workflows/release-artifact.yml
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-onedir-${{ matrix.platform }}-${{ matrix.arch }}.${{ matrix.platform == 'windows' && 'zip' || 'tar.xz' }}
|
||||
upload_url: ${{ needs.create-github-release.outputs.upload_url }}
|
||||
|
||||
release-artifacts:
|
||||
name: Download and list all artifacts
|
||||
runs-on: ubuntu-22.04
|
||||
upload-deb-packages:
|
||||
needs:
|
||||
- create-github-release
|
||||
strategy:
|
||||
matrix:
|
||||
${{ fromJSON(inputs.matrix)['linux'] }}
|
||||
steps:
|
||||
- name: Echo upload url
|
||||
run: echo ${{ needs.create-github-release.outputs.upload_url }}
|
||||
include: ${{ fromJSON(inputs.build-matrix)['linux'] }}
|
||||
uses: ./.github/workflows/release-artifact.yml
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ matrix.arch }}-deb
|
||||
upload_url: ${{ needs.create-github-release.outputs.upload_url }}
|
||||
|
||||
upload-rpm-packages:
|
||||
needs:
|
||||
- create-github-release
|
||||
strategy:
|
||||
matrix:
|
||||
include: ${{ fromJSON(inputs.build-matrix)['linux'] }}
|
||||
uses: ./.github/workflows/release-artifact.yml
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ matrix.arch }}-rpm
|
||||
upload_url: ${{ needs.create-github-release.outputs.upload_url }}
|
||||
|
||||
upload-mac-packages:
|
||||
needs:
|
||||
- create-github-release
|
||||
strategy:
|
||||
matrix:
|
||||
include: ${{ fromJSON(inputs.build-matrix)['macos'] }}
|
||||
uses: ./.github/workflows/release-artifact.yml
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ matrix.arch }}-macos
|
||||
upload_url: ${{ needs.create-github-release.outputs.upload_url }}
|
||||
|
||||
upload-windows-msi-packages:
|
||||
needs:
|
||||
- create-github-release
|
||||
strategy:
|
||||
matrix:
|
||||
include: ${{ fromJSON(inputs.build-matrix)['windows'] }}
|
||||
uses: ./.github/workflows/release-artifact.yml
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ matrix.arch }}-MSI
|
||||
upload_url: ${{ needs.create-github-release.outputs.upload_url }}
|
||||
|
||||
upload-windows-nsis-packages:
|
||||
needs:
|
||||
- create-github-release
|
||||
strategy:
|
||||
matrix:
|
||||
include: ${{ fromJSON(inputs.build-matrix)['windows'] }}
|
||||
uses: ./.github/workflows/release-artifact.yml
|
||||
with:
|
||||
name: salt-${{ inputs.salt-version }}-${{ matrix.arch }}-NSIS
|
||||
upload_url: ${{ needs.create-github-release.outputs.upload_url }}
|
||||
|
|
12
.github/workflows/release-artifact.yml
vendored
12
.github/workflows/release-artifact.yml
vendored
|
@ -4,29 +4,27 @@ name: Upload Release Artifact
|
|||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
artifact-name:
|
||||
name:
|
||||
type: string
|
||||
required: true
|
||||
description: The Salt version to set prior to building packages.
|
||||
uload-url:
|
||||
upload_url:
|
||||
type: string
|
||||
required: true
|
||||
description: Release's upload url.
|
||||
|
||||
|
||||
steps:
|
||||
jobs:
|
||||
|
||||
list-files:
|
||||
name: List Files From Artifact
|
||||
needs:
|
||||
- create-github-release
|
||||
runs-on: ubuntu-22.04
|
||||
outputs:
|
||||
files: ${{ steps.list-files.outputs.files }}
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact-name }}
|
||||
name: ${{ inputs.name }}
|
||||
path: artifacts
|
||||
- id: list-files
|
||||
run: |
|
||||
|
@ -43,7 +41,7 @@ steps:
|
|||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ${{ inputs.artifact-name }}
|
||||
name: ${{ inputs.name }}
|
||||
path: artifacts
|
||||
|
||||
- id: file-type
|
||||
|
|
6
.github/workflows/staging.yml
vendored
6
.github/workflows/staging.yml
vendored
|
@ -652,9 +652,12 @@ jobs:
|
|||
if: |
|
||||
always() && (needs.test.result == 'success' || needs.test.result == 'skipped') &&
|
||||
(needs.test-packages.result == 'success' || needs.test-packages.result == 'skipped') &&
|
||||
needs.prepare-workflow.result == 'success' && needs.build-pkgs-onedir.result == 'success'
|
||||
needs.prepare-workflow.result == 'success' && needs.build-salt-onedir.result == 'success' &&
|
||||
needs.build-pkgs-onedir.result == 'success' && needs.pre-commit.result == 'success'
|
||||
needs:
|
||||
- prepare-workflow
|
||||
- pre-commit
|
||||
- build-salt-onedir
|
||||
- build-pkgs-onedir
|
||||
- test-packages
|
||||
- test
|
||||
|
@ -666,6 +669,7 @@ jobs:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['artifact-matrix']) }}
|
||||
build-matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}
|
||||
|
||||
set-pipeline-exit-status:
|
||||
# This step is just so we can make github require this step, to pass checks
|
||||
|
|
|
@ -181,9 +181,12 @@ on:
|
|||
if: |
|
||||
always() && (needs.test.result == 'success' || needs.test.result == 'skipped') &&
|
||||
(needs.test-packages.result == 'success' || needs.test-packages.result == 'skipped') &&
|
||||
needs.prepare-workflow.result == 'success' && needs.build-pkgs-onedir.result == 'success'
|
||||
needs.prepare-workflow.result == 'success' && needs.build-salt-onedir.result == 'success' &&
|
||||
needs.build-pkgs-onedir.result == 'success' && needs.pre-commit.result == 'success'
|
||||
needs:
|
||||
- prepare-workflow
|
||||
- pre-commit
|
||||
- build-salt-onedir
|
||||
- build-pkgs-onedir
|
||||
- test-packages
|
||||
- test
|
||||
|
@ -195,6 +198,7 @@ on:
|
|||
with:
|
||||
salt-version: "${{ needs.prepare-workflow.outputs.salt-version }}"
|
||||
matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['artifact-matrix']) }}
|
||||
build-matrix: ${{ toJSON(fromJSON(needs.prepare-workflow.outputs.config)['build-matrix']) }}
|
||||
|
||||
|
||||
<%- endblock jobs %>
|
||||
|
|
Loading…
Add table
Reference in a new issue