oh-my-posh/.github/workflows/build_code.yml
2022-12-17 11:27:52 +01:00

37 lines
965 B
YAML

on:
pull_request:
paths-ignore:
- 'README.md'
- 'CONTRIBUTING.md'
- 'COPYING'
- 'website/**'
- '.github/*.md'
- '.github/FUNDING.yml'
name: Build Code
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
steps:
- name: Checkout code 👋
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- name: Install Go 🗳
uses: ./.github/workflows/composite/bootstrap-go
- name: Run GoReleaser 🚀
uses: goreleaser/goreleaser-action@8f67e590f2d095516493f017008adc464e63adb1
with:
distribution: goreleaser
version: latest
args: build --rm-dist --snapshot --skip-post-hooks --skip-before
workdir: src
- name: Archive production artifacts
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb
with:
name: builds
retention-days: 1
path: |
src/dist