Skip to content

release schema-diff #14

release schema-diff

release schema-diff #14

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: release schema-diff
on:
push:
tags:
- "*"
env:
ACTIONS_STEP_DEBUG: true
jobs:
create_release:
permissions: write-all
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ github.ref }}
build:
permissions: write-all
runs-on: ubuntu-latest
needs: create_release
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22.1"
- name: go mod tidy
run: go mod tidy
- name: build
run: make all
- name: Upload Binarys
id: upload-installer-asset
uses: alexellis/upload-assets@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./build/*"]'