Skip to content

fix versioning issue #6

fix versioning issue

fix versioning issue #6

Workflow file for this run

# Copyright 2024 Nokia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
name: release
on:
push:
branches:
- main
- docs-publish
tags:
- "v*"
pull_request:
workflow_dispatch:
env:
GOVER: 1.21.4
jobs:
build-and-release:
runs-on: sdcio-action-runners
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Make sure the @v0.8.0 matches the current version of the action
- uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.IPTECHARCH_SSH_KEY }}
- name: Setup Git config
run: |
git config --global url."ssh://git@github.com/".insteadOf "https://github.com/"
mkdir -p -m 0700 /home/runner/.ssh && ssh-keyscan github.com >> /home/runner/.ssh/known_hosts
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GOVER }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean -f .goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}