Skip to content

chore(md): updated README file #1

chore(md): updated README file

chore(md): updated README file #1

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
name: Build and Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.18'
- name: Build
run: |
go build -o earlymoon
- name: Archive binary
run: |
tar -czvf earlymoon.tar.gz earlymoon
shell: bash
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
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: ./earlymoon.tar.gz
asset_name: earlymoon.tar.gz
asset_content_type: application/gzip