Skip to content

ci: use github token when downloading packer deps from github (#242) #125

ci: use github token when downloading packer deps from github (#242)

ci: use github token when downloading packer deps from github (#242) #125

Workflow file for this run

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
name: Build
on:
push:
branches: [main]
env:
GOTOOLCHAIN: local
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.23"
- uses: goreleaser/goreleaser-action@v6
with:
version: 2.x
args: release --clean --timeout 120m --snapshot --skip=sign
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
with:
path: dist/*.zip