|
| 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 | + |
1 | 5 | name: publish-godel-artifacts
|
2 |
| -on: |
3 |
| - release: |
4 |
| - types: |
5 |
| - - created |
| 6 | +on: push |
| 7 | + |
6 | 8 | jobs:
|
7 | 9 | run-godel-publish:
|
8 | 10 | runs-on: ubuntu-latest
|
9 | 11 | permissions:
|
10 | 12 | contents: write
|
11 | 13 | steps:
|
12 |
| - - uses: actions/checkout@v2 |
| 14 | + - uses: actions/checkout@v4 |
13 | 15 | #####################
|
14 | 16 | # START Go dist setup
|
15 | 17 | #####################
|
16 | 18 | - 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" |
18 | 24 | - id: go-dist-info
|
19 |
| - uses: ./.github/actions/go-dist-info |
| 25 | + uses: palantir/github-actions/go-dist-info@0.1.0 |
20 | 26 | with:
|
21 |
| - gopath: ${{ steps.set-gopath.outputs.gopath }} |
| 27 | + gopath: ${{ steps.set-gopath.outputs.GOPATH }} |
| 28 | + go-version: go1.23.2 |
22 | 29 | - id: restore-go-dist-from-cache
|
23 | 30 | if: steps.go-dist-info.outputs.go-dist-exists != 'true'
|
24 |
| - uses: actions/cache@v2 |
| 31 | + uses: actions/cache@v4 |
25 | 32 | with:
|
26 | 33 | 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 }} |
28 | 35 | key: ${{ runner.os }}-${{ steps.go-dist-info.outputs.go-dist-version }}
|
29 | 36 | - id: go-dist-setup
|
30 |
| - uses: ./.github/actions/go-dist-setup |
| 37 | + uses: palantir/github-actions/go-dist-setup@0.1.0 |
31 | 38 | with:
|
32 | 39 | gopath: ${{ steps.set-gopath.outputs.gopath }}
|
33 | 40 | go-version: ${{ steps.go-dist-info.outputs.go-dist-version }}
|
34 | 41 | #####################
|
35 | 42 | # END Go dist setup
|
36 | 43 | #####################
|
37 |
| - - uses: actions/cache@v2 |
| 44 | + - uses: actions/cache@v4 |
38 | 45 | with:
|
39 | 46 | path: |
|
40 |
| - ~/go/pkg/mod |
| 47 | + ${{ env.GOPATH }}/pkg/mod |
41 | 48 | ~/.cache/go-build
|
42 | 49 | key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
43 |
| - - uses: actions/cache@v2 |
| 50 | + - uses: actions/cache@v4 |
44 | 51 | with:
|
45 | 52 | path: |
|
46 | 53 | ~/.godel
|
47 | 54 | key: ${{ runner.os }}-godel-${{ hashFiles('godelw', 'godel/config/godel.yml') }}
|
| 55 | + - run: ./godelw mod |
48 | 56 | - 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