Skip to content

Commit f247920

Browse files
authored
ci: do not build again and use the artifacts from the build job
This will make this job faster. Also, we do not need to use the buildjet runner as we are not building anything.
1 parent ef4d1b6 commit f247920

File tree

1 file changed

+8
-32
lines changed

1 file changed

+8
-32
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -835,21 +835,16 @@ jobs:
835835
TOKEN_SAO_PAULO: ${{ secrets.FLY_SAO_PAULO_CODER_PROXY_SESSION_TOKEN }}
836836

837837
deploy-legacy-proxies:
838-
name: "deploy-legacy-proxies"
839-
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-16vcpu-ubuntu-2204' || 'ubuntu-latest' }}
838+
runs-on: ubuntu-latest
840839
timeout-minutes: 30
841-
needs: changes
842-
if: |
843-
github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
844-
&& needs.changes.outputs.docs-only == 'false'
840+
needs: build
841+
if: github.ref == 'refs/heads/main' && !github.event.pull_request.head.repo.fork
845842
permissions:
846843
contents: read
847844
id-token: write
848845
steps:
849846
- name: Checkout
850847
uses: actions/checkout@v4
851-
with:
852-
fetch-depth: 0
853848

854849
- name: Authenticate to Google Cloud
855850
uses: google-github-actions/auth@v2
@@ -860,30 +855,11 @@ jobs:
860855
- name: Set up Google Cloud SDK
861856
uses: google-github-actions/setup-gcloud@v2
862857

863-
- name: Setup Node
864-
uses: ./.github/actions/setup-node
865-
866-
- name: Setup Go
867-
uses: ./.github/actions/setup-go
868-
869-
- name: Install goimports
870-
run: go install golang.org/x/tools/cmd/goimports@latest
871-
- name: Install nfpm
872-
run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@v2.16.0
873-
874-
- name: Install zstd
875-
run: sudo apt-get install -y zstd
876-
877-
- name: Build Release
878-
run: |
879-
set -euo pipefail
880-
go mod download
881-
882-
version="$(./scripts/version.sh)"
883-
make gen/mark-fresh
884-
make -j \
885-
build/coder_"$version"_windows_amd64.zip \
886-
build/coder_"$version"_linux_amd64.{tar.gz,deb}
858+
- name: Upload build artifacts
859+
uses: actions/upload-artifact@v3
860+
with:
861+
name: coder
862+
path: ./build
887863

888864
- name: Install Release
889865
run: |

0 commit comments

Comments
 (0)