[oci resolver] Roll back changes until #9380 (#9455) #539
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Website | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "docs/**" | |
- "website/**" | |
- "server/metrics/**" | |
- "enterprise/server/backends/prom/**" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'website skip')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Restore caches | |
id: cache-restore | |
uses: ./.github/actions/cache-restore | |
- name: Build Website | |
env: | |
GO_REPOSITORY_USE_HOST_CACHE: 1 | |
GOMODCACHE: /home/runner/go-mod-cache | |
run: | | |
bazelisk build --repository_cache='~/repo-cache/' //website:website --config=ci --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_ORG_API_KEY }} | |
rm -rf website/build | |
mkdir -p website/build | |
cd website/build | |
tar -xf ../../bazel-bin/website/website.tar | |
touch .nojekyll | |
- name: Deploy Website 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: website/build | |
- name: Save caches | |
uses: ./.github/actions/cache-save | |
if: always() | |
with: | |
repo-cache-dir: ${{ steps.cache-restore.outputs.repo-cache-dir }} | |
go-mod-cache-dir: ${{ steps.cache-restore.outputs.go-mod-cache-dir }} | |
yarn-cache-dir: ${{ steps.cache-restore.outputs.yarn-cache-dir }} |