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