Skip to content

Caliptra Release

Caliptra Release #4

name: Caliptra Release
on:
workflow_dispatch:
inputs:
tag:
description: 'The release tag to deploy, formatted as component-major.minor.patch (e.g. fmc-2.0.0)'
required: true
type: string
commit:
description: 'The commit reference to checkout and tag'
required: true
type: string
permissions:
contents: write
jobs:
deploy-release:
name: Deploy Release
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
fetch-depth: 0
- name: Run xtask release deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name "GitHub CI"
git config --global user.email "username@users.noreply.github.com"
# Build xtask before switching commits.
cargo build -p xtask
git fetch --depth 1 origin ${{ inputs.commit }}
git reset --hard ${{ inputs.commit }}
git submodule update --init --recursive
git remote rename origin release-repo
./target/debug/xtask release deploy ${{ inputs.tag }}