Skip to content

Commit 52bfc4d

Browse files
Excavator: Render CircleCI file using template specified in .circleci/template.sh
1 parent 171225a commit 52bfc4d

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

.github/workflows/publish-godel-artifacts.yml

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,56 @@
1+
# This file was generated by the excavator check 'excavator/manage-circleci' as specified in .circleci/template.sh.
2+
# To request a modification to the general template, file an issue on Excavator.
3+
# To manually manage the CircleCI configuration for this project, remove the .circleci/template.sh file.
4+
15
name: publish-godel-artifacts
2-
on:
3-
push:
4-
tags:
5-
- 'v[0-9]+.[0-9]+.[0-9]+**'
6+
on: push
7+
68
jobs:
79
run-godel-publish:
810
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
913
steps:
10-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1115
#####################
1216
# START Go dist setup
1317
#####################
1418
- id: set-gopath
15-
run: echo "::set-output name=GOPATH::$(go env GOPATH)"
19+
run: |
20+
echo "GOPATH=$(go env GOPATH)" >> "$GITHUB_OUTPUT"
21+
echo "Set GOPATH=$(go env GOPATH) in GITHUB_OUTPUT at $GITHUB_OUTPUT"
22+
echo "GOPATH=$(go env GOPATH)" >> "$GITHUB_ENV"
23+
echo "Set GOPATH=$(go env GOPATH) in GITHUB_ENV at $GITHUB_ENV"
1624
- id: go-dist-info
17-
uses: ./.github/actions/go-dist-info
25+
uses: palantir/github-actions/go-dist-info@0.1.0
1826
with:
19-
gopath: ${{ steps.set-gopath.outputs.gopath }}
27+
gopath: ${{ steps.set-gopath.outputs.GOPATH }}
28+
go-version: go1.23.2
2029
- id: restore-go-dist-from-cache
2130
if: steps.go-dist-info.outputs.go-dist-exists != 'true'
22-
uses: actions/cache@v2
31+
uses: actions/cache@v4
2332
with:
2433
path: |
25-
${{ steps.set-gopath.outputs.gopath }}/go-dists/${{ steps.go-dist-info.outputs.go-dist-version }}
34+
${{ steps.set-gopath.outputs.GOPATH }}/go-dists/${{ steps.go-dist-info.outputs.go-dist-version }}
2635
key: ${{ runner.os }}-${{ steps.go-dist-info.outputs.go-dist-version }}
2736
- id: go-dist-setup
28-
uses: ./.github/actions/go-dist-setup
37+
uses: palantir/github-actions/go-dist-setup@0.1.0
2938
with:
3039
gopath: ${{ steps.set-gopath.outputs.gopath }}
3140
go-version: ${{ steps.go-dist-info.outputs.go-dist-version }}
3241
#####################
3342
# END Go dist setup
3443
#####################
35-
- uses: actions/cache@v2
44+
- uses: actions/cache@v4
3645
with:
3746
path: |
38-
~/go/pkg/mod
47+
${{ env.GOPATH }}/pkg/mod
3948
~/.cache/go-build
4049
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
41-
- uses: actions/cache@v2
50+
- uses: actions/cache@v4
4251
with:
4352
path: |
4453
~/.godel
4554
key: ${{ runner.os }}-godel-${{ hashFiles('godelw', 'godel/config/godel.yml') }}
55+
- run: ./godelw mod
4656
- run: ./godelw dist
47-
env:
48-
GOPATH: "/home/runner/go"
49-
- run: ./godelw publish github --add-v-prefix --api-url=$GITHUB_API_URL --user=palantir --repository=godel-conjure-plugin --token=${{ secrets.GITHUB_TOKEN }}
50-
env:
51-
GOPATH: "/home/runner/go"

0 commit comments

Comments
 (0)