oh-my-posh/.github/workflows/build_code.yml

37 lines
963 B
YAML
Raw Normal View History

2021-10-06 12:43:18 -07:00
on:
pull_request:
paths-ignore:
- 'README.md'
- 'CONTRIBUTING.md'
- 'COPYING'
2022-05-12 22:54:59 -07:00
- 'website/**'
2021-10-06 12:43:18 -07:00
- '.github/*.md'
- '.github/FUNDING.yml'
name: Build Code
jobs:
build:
runs-on: ubuntu-latest
2021-12-16 10:59:45 -08:00
defaults:
run:
shell: pwsh
2021-10-06 12:43:18 -07:00
steps:
- name: Checkout code 👋
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- name: Install Go 🗳
uses: ./.github/workflows/composite/bootstrap-go
- name: Run GoReleaser 🚀
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200
2021-10-06 12:43:18 -07:00
with:
distribution: goreleaser
version: latest
args: build --clean --snapshot --skip=post-hooks --skip=before
2021-10-06 12:43:18 -07:00
workdir: src
2022-12-16 11:47:46 -08:00
- name: Archive production artifacts
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
2022-12-16 11:47:46 -08:00
with:
name: builds
retention-days: 1
path: |
src/dist