Skip to content

Commit

Permalink
Upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jsclayton committed Jun 4, 2023
1 parent f1fc575 commit 97b02ef
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: CI

on:
Expand Down Expand Up @@ -28,14 +25,12 @@ jobs:
- goos: windows
goarch: amd64
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: 1.20.4
- name: Build
run: go build -mod vendor -o ./bin/${GOOS}/prometheus-plex-exporter-${GOARCH} ./cmd/prometheus-plex-exporter
run: go build -mod vendor -o ${{ github.workspace }}/bin/prometheus-plex-exporter ./cmd/prometheus-plex-exporter
env:
CGO_ENABLED: "0"
GOOS: ${{ matrix.goos }}
Expand All @@ -45,4 +40,9 @@ jobs:
env:
CGO_ENABLED: "0"
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GOARCH: ${{ matrix.goarch }}
- name: Artifacts
uses: actions/upload-artifact@v3
with:
name: prometheus-plex-exporter-${{ matrix.goos }}-${{ matrix.goarch}}
path: ${{ github.workspace }}/bin

0 comments on commit 97b02ef

Please sign in to comment.