Skip to content

Prerelease

Prerelease #8

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: "${{ github.ref }}-pre-${{ github.sha }}"
prerelease: true
make_latest: false
name: "Prelease: ${{ github.ref }}-pre-${{ github.sha }}"
files: |
dist/*.tar.gz
dist/checksum*