Skip to content

fix(deps): update module github.com/cloudflare/cloudflare-go to v0.11… #379

fix(deps): update module github.com/cloudflare/cloudflare-go to v0.11…

fix(deps): update module github.com/cloudflare/cloudflare-go to v0.11… #379

Workflow file for this run

name: Go Checks
on:
push:
branches:
- '**'
tags:
- 'v*'
paths:
- 'go.sum'
- 'go.mod'
- '**.go'
- .github/workflows/golang.yml
- './cmd/cloudflare-utils/.goreleaser.yml'
pull_request:
branches:
- main
paths:
- '**.go'
- 'go.sum'
- 'go.mod'
permissions:
security-events: write
actions: write
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Snapshot:
if: ${{ startsWith(github.ref, 'refs/tags/v') == false }}
runs-on: windows-latest
env:
GO111MODULE: on
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- uses: actions/cache@v4
with:
path: |
~\AppData\Local\go-build
~\go\pkg\mod
key: go-${{ hashFiles('go.sum') }}
restore-keys: |
go-
- name: Install Syft
run: choco install syft --yes
#- name: Test
# run: make test
- name: Download AutoComplete file
run: Invoke-WebRequest -Uri https://raw.githubusercontent.com/urfave/cli/v2.25.7/autocomplete/bash_autocomplete -OutFile bash_completion
- name: GoReleaser Action
uses: goreleaser/goreleaser-action@v6
with:
version: '~> v2'
args: --snapshot --clean --skip=publish,sign
workdir: cmd/cloudflare-utils
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload assets
uses: actions/upload-artifact@v4
with:
name: cloudflare-utils
path: cmd/cloudflare-utils/dist/*
Release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: windows-latest
env:
GO111MODULE: on
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- name: Install Syft
run: choco install syft --yes
- uses: actions/cache@v4
with:
path: |
~\AppData\Local\go-build
~\go\pkg\mod
key: go-${{ hashFiles('go.sum') }}
- name: Download AutoComplete file
run: Invoke-WebRequest -Uri https://raw.githubusercontent.com/urfave/cli/v2.25.7/autocomplete/bash_autocomplete -OutFile bash_completion
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: '~> v2'
args: release --clean
workdir: cmd/cloudflare-utils
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}