Skip to content

Commit 2a1a271

Browse files
Excavator: Render CircleCI file using template specified in .circleci/template.sh
1 parent 391d3ac commit 2a1a271

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

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

+22-19
Original file line numberDiff line numberDiff line change
@@ -1,53 +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-
release:
4-
types:
5-
- created
6+
on: push
7+
68
jobs:
79
run-godel-publish:
810
runs-on: ubuntu-latest
911
permissions:
1012
contents: write
1113
steps:
12-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1315
#####################
1416
# START Go dist setup
1517
#####################
1618
- id: set-gopath
17-
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"
1824
- id: go-dist-info
19-
uses: ./.github/actions/go-dist-info
25+
uses: palantir/github-actions/go-dist-info@0.1.0
2026
with:
21-
gopath: ${{ steps.set-gopath.outputs.gopath }}
27+
gopath: ${{ steps.set-gopath.outputs.GOPATH }}
28+
go-version: go1.23.2
2229
- id: restore-go-dist-from-cache
2330
if: steps.go-dist-info.outputs.go-dist-exists != 'true'
24-
uses: actions/cache@v2
31+
uses: actions/cache@v4
2532
with:
2633
path: |
27-
${{ 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 }}
2835
key: ${{ runner.os }}-${{ steps.go-dist-info.outputs.go-dist-version }}
2936
- id: go-dist-setup
30-
uses: ./.github/actions/go-dist-setup
37+
uses: palantir/github-actions/go-dist-setup@0.1.0
3138
with:
3239
gopath: ${{ steps.set-gopath.outputs.gopath }}
3340
go-version: ${{ steps.go-dist-info.outputs.go-dist-version }}
3441
#####################
3542
# END Go dist setup
3643
#####################
37-
- uses: actions/cache@v2
44+
- uses: actions/cache@v4
3845
with:
3946
path: |
40-
~/go/pkg/mod
47+
${{ env.GOPATH }}/pkg/mod
4148
~/.cache/go-build
4249
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
43-
- uses: actions/cache@v2
50+
- uses: actions/cache@v4
4451
with:
4552
path: |
4653
~/.godel
4754
key: ${{ runner.os }}-godel-${{ hashFiles('godelw', 'godel/config/godel.yml') }}
55+
- run: ./godelw mod
4856
- run: ./godelw dist
49-
env:
50-
GOPATH: "/home/runner/go"
51-
- run: ./godelw publish github --add-v-prefix --api-url=$GITHUB_API_URL --user=palantir --repository=godel-okgo-asset-nobadfuncs --token=${{ secrets.GITHUB_TOKEN }}
52-
env:
53-
GOPATH: "/home/runner/go"

0 commit comments

Comments
 (0)