Skip to content

.github/workflows/utility-binaries-build.yml #158

.github/workflows/utility-binaries-build.yml

.github/workflows/utility-binaries-build.yml #158

on:
push:
branches:
- 'build-utility-*'
schedule:
- cron: '15 1 * * *'
workflow_dispatch:
jobs:
build-utilities:
if: github.repository == 'hashicorp/vagrant-vmware-desktop'
name: Development Utility Builds
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Code Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Get info
id: info
run: ./.ci/utility-bins-information
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and publish utilities
if: ${{ steps.info.outputs.utility-bins-release-exists != 'true' }}
run: ./.ci/utility-binaries-prerelease "${UTILITY_VERSION}"
env:
UTILITY_VERSION: ${{ steps.info.outputs.utility-bins-version }}
EVENT_NAME: ${{ github.event_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}