Skip to content

Merge branch 'master' of github.com:ceuk/git-file-history #3

Merge branch 'master' of github.com:ceuk/git-file-history

Merge branch 'master' of github.com:ceuk/git-file-history #3

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.13.1'
- run: go version
- name: Build binary
run: go build -o git-file-history
- name: Archive binary
run: tar -czvf git-file-history.tar.gz git-file-history
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./git-file-history.tar.gz
asset_name: git-file-history.tar.gz
asset_content_type: application/gzip