Skip to content

Commit 8e1bcae

Browse files
committed
Set up for release
1 parent 3bebb92 commit 8e1bcae

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/setup-go@v4
1818
with:
1919
go-version: '^1.21.1'
20-
- run: go build -o proxy-${{runner.os}}-${{runner.arch}}${{matrix.os == 'windows' && '.exe' || ''}} ./cmd/proxy
20+
- run: go build -o proxy-${{runner.os}}-${{runner.arch}}${{runner.os == 'Windows' && '.exe' || ''}} ./cmd/proxy
2121
- uses: actions/upload-artifact@v3
2222
with:
2323
name: build

action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: Goproxy GitHub Cache
22
description: Goproxy using GitHub Actions Cache
3+
env:
4+
PROXY_VERSION: ${{github.action_ref}}
35
runs:
46
using: composite
57
steps:
6-
- run: echo TODO
8+
- run: wget https://github.com/jchadwick-buf/goproxy-github-cache/releases/download/${{env.PROXY_VERSION}}/proxy-${{runner.os}}-${{runner.arch}}${{runner.os == 'Windows' && '.exe' || ''}}
9+
shell: bash
10+
- run: proxy-${{runner.os}}-${{runner.arch}}${{runner.os == 'Windows' && '.exe' || ''}} &
11+
shell: bash
12+
- run: echo "GOPROXY=http://localhost:8123,direct" >> $GITHUB_ENV
713
shell: bash

0 commit comments

Comments
 (0)