mirror of
https://github.com/apple/container.git
synced 2026-07-12 12:37:02 +00:00
27acdbe2f8
- Updates `actions/checkout` from 6.0.3 to 7.0.0 - Updates `softprops/action-gh-release` from 3.0.0 to 3.0.1 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
name: container project - release build
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "[0-9]+\\.[0-9]+\\.[0-9]+"
|
|
|
|
jobs:
|
|
build:
|
|
name: Invoke build and release
|
|
uses: ./.github/workflows/common.yml
|
|
with:
|
|
release: true
|
|
secrets: inherit
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
pages: write
|
|
|
|
release:
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
name: Publish release
|
|
timeout-minutes: 30
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
packages: read
|
|
pages: write
|
|
steps:
|
|
- name: Download artifacts
|
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
|
with:
|
|
path: outputs
|
|
|
|
- name: Verify artifacts exist
|
|
run: |
|
|
echo "Checking for expected artifacts..."
|
|
ls -la outputs/container-package/
|
|
test -e outputs/container-package/*.zip || (echo "Missing .zip file!" && exit 1)
|
|
test -e outputs/container-package/*.pkg || (echo "Missing .pkg file!" && exit 1)
|
|
|
|
- name: Create release
|
|
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3
|
|
with:
|
|
token: ${{ github.token }}
|
|
name: ${{ github.ref_name }}-prerelease
|
|
draft: true
|
|
make_latest: false
|
|
prerelease: true
|
|
fail_on_unmatched_files: true
|
|
files: |
|
|
outputs/container-package/*.zip
|
|
outputs/container-package/*.pkg
|