Skip to content

feat: Get server url from github context (#19) #4

feat: Get server url from github context (#19)

feat: Get server url from github context (#19) #4

Workflow file for this run

# Copyright 2023 The Authors (see AUTHORS file)
#
# 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:
tags:
- 'v*'
permissions:
contents: 'write'
packages: 'write'
jobs:
release:
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b' # ratchet:actions/checkout@v3
with:
fetch-depth: 0
- uses: 'actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a' # ratchet:actions/setup-go@v3
- uses: 'goreleaser/goreleaser-action@b953231f81b8dfd023c58e0854a721e35037f28b' # ratchet:goreleaser/goreleaser-action@v2
with:
version: 'latest'
args: 'release --clean'
env:
# PAT token needed to allow for subsequent automation for publishing immuatable package
# The default GitHub token doesn't allow triggering of additional workflows
GITHUB_TOKEN: '${{ secrets.ACTIONS_BOT_TOKEN }}'