Skip to content

Commit

Permalink
Merge pull request #143 from nokia/fix-release-script
Browse files Browse the repository at this point in the history
Fix "release" GitHub Action
  • Loading branch information
efiacor authored Nov 25, 2024
2 parents bc0af60 + 4913a73 commit 52d2a94
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ on:
- "v[0-9]+.[0-9]+.[0-9]"
- "v[0-9]+.[0-9]+.[0-9]-pre[0-9]+"

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -29,21 +31,25 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.22.2'
go-version: ">=1.22.2"

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0


- name: Download kpt CLI
run: mkdir -p bin && wget -O bin/kpt https://github.com/kptdev/kpt/releases/download/v1.0.0-beta.55/kpt_linux_amd64 && chmod +x bin/kpt

- name: Build porch blueprint
run: IMAGE_REPO=docker.io/nephio IMAGE_TAG=${{ github.ref_name }} make deployment-config
run: PATH=./bin:$PATH IMAGE_REPO=docker.io/nephio IMAGE_TAG=${{ github.ref_name }} make deployment-config

- name: Run GoReleaser
id: run-goreleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --skip-validate -f release/tag/goreleaser.yaml
version: "~> v2"
args: release --skip=validate -f release/tag/goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 52d2a94

Please sign in to comment.