Skip to content

Commit 14a3fe3

Browse files
Excavator: Manages GitHub action that publishes artifacts to GitHub using godel (#330)
1 parent a4452d3 commit 14a3fe3

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed
Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,53 @@
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-
51
name: publish-godel-artifacts
6-
on: push
7-
2+
on:
3+
release:
4+
types:
5+
- created
86
jobs:
97
run-godel-publish:
108
runs-on: ubuntu-latest
119
permissions:
1210
contents: write
1311
steps:
14-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v2
1513
#####################
1614
# START Go dist setup
1715
#####################
1816
- 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)"
2418
- id: go-dist-info
25-
uses: palantir/github-actions/go-dist-info@0.1.0
19+
uses: ./.github/actions/go-dist-info
2620
with:
27-
gopath: ${{ steps.set-gopath.outputs.GOPATH }}
28-
go-version: go1.23.2
21+
gopath: ${{ steps.set-gopath.outputs.gopath }}
2922
- id: restore-go-dist-from-cache
3023
if: steps.go-dist-info.outputs.go-dist-exists != 'true'
31-
uses: actions/cache@v4
24+
uses: actions/cache@v2
3225
with:
3326
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 }}
3528
key: ${{ runner.os }}-${{ steps.go-dist-info.outputs.go-dist-version }}
3629
- id: go-dist-setup
37-
uses: palantir/github-actions/go-dist-setup@0.1.0
30+
uses: ./.github/actions/go-dist-setup
3831
with:
3932
gopath: ${{ steps.set-gopath.outputs.gopath }}
4033
go-version: ${{ steps.go-dist-info.outputs.go-dist-version }}
4134
#####################
4235
# END Go dist setup
4336
#####################
44-
- uses: actions/cache@v4
37+
- uses: actions/cache@v2
4538
with:
4639
path: |
47-
${{ env.GOPATH }}/pkg/mod
40+
~/go/pkg/mod
4841
~/.cache/go-build
4942
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
50-
- uses: actions/cache@v4
43+
- uses: actions/cache@v2
5144
with:
5245
path: |
5346
~/.godel
5447
key: ${{ runner.os }}-godel-${{ hashFiles('godelw', 'godel/config/godel.yml') }}
55-
- run: ./godelw mod
5648
- 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

Comments
 (0)