Skip to content

Release

Release #26

Workflow file for this run

name: Release
on:
create:
tags:
- v*
permissions:
contents: write
jobs:
release:
name: Release on GitHub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
- run: mkdir -p myfolder
- run: echo hello > myfolder/world.txt
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
workdir: myfolder
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload assets
uses: actions/upload-artifact@v3
with:
name: myapp
path: myfolder/dist/*