Skip to content

Improve release workflow #1

Improve release workflow

Improve release workflow #1

Workflow file for this run

name: Publish
on:
push:
branches: "main"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22.2"
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H:%M:%S.%3NZ')"
- name: Tag commit
uses: tvdias/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
tag: "${{ steps.date.outputs.date }}"
- uses: ncipollo/release-action@v1
with:
artifacts: "build/2rm"
tag: "${{ steps.date.outputs.date }}"