mirror of
https://github.com/fosrl/olm.git
synced 2026-02-08 05:56:41 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v5)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Former-commit-id: f19b6f1584
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: CI/CD Pipeline
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
release:
|
|
name: Build and Release
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Extract tag name
|
|
id: get-tag
|
|
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: 1.25
|
|
|
|
- name: Update version in main.go
|
|
run: |
|
|
TAG=${{ env.TAG }}
|
|
if [ -f main.go ]; then
|
|
sed -i 's/version_replaceme/'"$TAG"'/' main.go
|
|
echo "Updated main.go with version $TAG"
|
|
else
|
|
echo "main.go not found"
|
|
fi
|
|
|
|
- name: Build binaries
|
|
run: |
|
|
make go-build-release
|
|
|
|
- name: Upload artifacts from /bin
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: binaries
|
|
path: bin/
|