-
Notifications
You must be signed in to change notification settings - Fork 13
53 lines (53 loc) · 1.78 KB
/
publish-godel-artifacts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: publish-godel-artifacts
on:
release:
types:
- created
jobs:
run-godel-publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
#####################
# START Go dist setup
#####################
- id: set-gopath
run: echo "::set-output name=GOPATH::$(go env GOPATH)"
- id: go-dist-info
uses: ./.github/actions/go-dist-info
with:
gopath: ${{ steps.set-gopath.outputs.gopath }}
- id: restore-go-dist-from-cache
if: steps.go-dist-info.outputs.go-dist-exists != 'true'
uses: actions/cache@v2
with:
path: |
${{ steps.set-gopath.outputs.gopath }}/go-dists/${{ steps.go-dist-info.outputs.go-dist-version }}
key: ${{ runner.os }}-${{ steps.go-dist-info.outputs.go-dist-version }}
- id: go-dist-setup
uses: ./.github/actions/go-dist-setup
with:
gopath: ${{ steps.set-gopath.outputs.gopath }}
go-version: ${{ steps.go-dist-info.outputs.go-dist-version }}
#####################
# END Go dist setup
#####################
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- uses: actions/cache@v2
with:
path: |
~/.godel
key: ${{ runner.os }}-godel-${{ hashFiles('godelw', 'godel/config/godel.yml') }}
- run: ./godelw dist
env:
GOPATH: "/home/runner/go"
- run: ./godelw publish github --add-v-prefix --api-url=$GITHUB_API_URL --user=palantir --repository=godel-conjure-plugin --token=${{ secrets.GITHUB_TOKEN }}
env:
GOPATH: "/home/runner/go"