.github/workflows/utility-binaries-build.yml #196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |