Skip to content

chore(main): release 0.1.8 (#3) #5

chore(main): release 0.1.8 (#3)

chore(main): release 0.1.8 (#3) #5

name: Publish UDS Package
on:
push:
branches:
- main
jobs:
tag-new-version:
permissions: write-all
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-flag.outputs.release_created }}
steps:
- name: Create Release Tag
id: tag
uses: google-github-actions/release-please-action@v3
with:
command: manifest # use configs in release-please-config.json
- id: release-flag
run: echo "release_created=${{ steps.tag.outputs.release_created || false }}" >> $GITHUB_OUTPUT
publish-uds-package:
needs: tag-new-version
if: ${{ needs.tag-new-version.outputs.release_created == 'true'}}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Setup Zarf
uses: defenseunicorns/setup-zarf@main
with:
# renovate: datasource=github-tags depName=defenseunicorns/zarf versioning=semver
version: v0.31.0-rc1
- name: Create Zarf Package
run: zarf package create --confirm
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: dummy
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish the capability
run: zarf package publish zarf-package-*.tar.zst oci://ghcr.io/defenseunicorns