Skip to content

Commit

Permalink
Add more spans
Browse files Browse the repository at this point in the history
  • Loading branch information
abtris committed Sep 23, 2023
1 parent 9c69943 commit b774542
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "^1.15.3"
- run: buildevents cmd $TRACE_ID $STEP_ID go version
go-version-file: 'go.mod'
- run: |-
STEP_ID=setup-go
echo "STEP_ID=${STEP_ID}" >> $GITHUB_ENV
echo "STEP_START=$(date +%s)" >> $GITHUB_ENV
buildevents cmd $TRACE_ID $STEP_ID setup-go -- go version
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
Expand All @@ -36,13 +40,14 @@ jobs:
extended: true

- name: Build index
run: buildevents cmd $TRACE_ID $STEP_ID hugo

run: |-
buildevents cmd $TRACE_ID $STEP_ID build-hugo -- hugo
- name: Upload index
env:
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
run: |-
buildevents cmd $TRACE_ID $STEP_ID go mod download
buildevents cmd $TRACE_ID $STEP_ID go run algolia.go
go mod download
buildevents cmd $TRACE_ID $STEP_ID upload-index -- go run algolia.go

0 comments on commit b774542

Please sign in to comment.