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