Skip to content

Prerelease

Prerelease #10

Workflow file for this run

name: Prerelease
on:
workflow_dispatch:
defaults:
run:
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup golang environment
uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --clean --snapshot -f .goreleaser.prerelease.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create prerelease
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "pre-${{ github.sha }}"
prerelease: true
make_latest: false
name: "Prelease: pre-${{ github.sha }}"
files: |
dist/*.tar.gz
dist/checksum*