Skip to content

defect: Fix nested enum GeodeticDatum #21

defect: Fix nested enum GeodeticDatum

defect: Fix nested enum GeodeticDatum #21

Workflow file for this run

# Copyright (c) 2024-2025 Six After, Inc
#
# This source code is licensed under the Apache 2.0 License found in the
# LICENSE file in the root directory of this source tree.
# Ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
name: release
on:
workflow_dispatch:
push:
tags: ['v*']
permissions:
contents: write
id-token: write
packages: write
pull-requests: read
jobs:
release:
runs-on: ubuntu-latest
env:
flags: ""
steps:
- name: "Preamble"
run: |
echo github ref $GITHUB_REF
echo workflow $GITHUB_WORKFLOW
echo home $HOME
echo event name $GITHUB_EVENT_NAME
echo workspace $GITHUB_WORKSPACE
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common ca-certificates gnupg-agent curl build-essential make
# See: https://github.com/actions/checkout
- name: "Checkout Source"
uses: actions/checkout@v6
with:
fetch-depth: 0
# See: https://github.com/actions/setup-go
- name: "Install Go"
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: "Compute Release Flags"
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: echo "flags=--snapshot" >> $GITHUB_ENV
# See: https://github.com/sigstore/cosign-installer
# See: https://github.com/sigstore/cosign/releases
- name: Install Cosign
uses: sigstore/cosign-installer@v4.0.0
with:
cosign-release: 'v3.0.3'
# See: https://github.com/anchore/sbom-action
- name: Generate SBOM via Syft
uses: anchore/sbom-action@v0
with:
format: spdx-json
artifact-name: sbom.spdx.json
# See: https://github.com/goreleaser/goreleaser-action
- name: "Release"
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COSIGN_PASSWORD: '${{ secrets.TYPES_COSIGN_PASSWORD }}'
COSIGN_PRIVATE_KEY: '${{ secrets.TYPES_COSIGN_PRIVATE_KEY }}'
COSIGN_PUBLIC_KEY: '${{ secrets.TYPES_COSIGN_PUBLIC_KEY }}'