This repository has been archived by the owner on Nov 28, 2024. It is now read-only.
Release Bootstrap Component #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Bootstrap Component | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: string | |
description: 'Version to release' | |
required: false | |
default: "v0.0.1" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Restore Go cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '>=1.20.0' | |
- name: Checkout mpas repository | |
uses: actions/checkout@v4 | |
- name: Build Bootstrap | |
run: | | |
BOOTSTRAP_RELEASE_VERSION=${{ github.event.inputs.version }} make build-release-bootstrap-component | |
- name: Push Bootstrap | |
run: | | |
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} make release-bootstrap-component |