34 lines
776 B
YAML
34 lines
776 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- 'CHANGELOG.md'
|
|
- 'website/**'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-gem:
|
|
if: github.repository == 'hashicorp/vagrant'
|
|
name: Build Vagrant RubyGem
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Code Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Setup Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: '2.7'
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version-file: go.mod
|
|
- name: Build RubyGem and binary
|
|
run: ./.ci/build.sh
|
|
working-directory: ${{github.workspace}}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
|