mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: Build and Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- 'v*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release:
|
|
name: 'Go Releaser'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: '1.25'
|
|
check-latest: true
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: '20.x'
|
|
cache: 'yarn'
|
|
cache-dependency-path: ui/yarn.lock
|
|
|
|
- name: Build frontend
|
|
run: |
|
|
yarn install --frozen-lockfile --non-interactive
|
|
yarn run build
|
|
working-directory: ./ui
|
|
|
|
- name: Test build release
|
|
uses: goreleaser/goreleaser-action@v6
|
|
if: "!startsWith(github.ref, 'refs/tags/v')"
|
|
with:
|
|
distribution: goreleaser
|
|
version: "~> v2"
|
|
args: release --snapshot
|
|
|
|
- name: Build and publish release
|
|
uses: goreleaser/goreleaser-action@v6
|
|
if: "startsWith(github.ref, 'refs/tags/v')"
|
|
with:
|
|
distribution: goreleaser
|
|
version: "~> v2"
|
|
args: release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|