forked from linkerd/website
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 842 Bytes
/
publish.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
name: publish
on:
push:
branches:
- main
repository_dispatch:
types: [release]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
container:
image: ghcr.io/linkerd/dev:v39
options: --user root
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: On create
run: |
.devcontainer/on-create.sh
- name: Setup gcloud
env:
LINKERD_SITE_TOKEN: ${{ secrets.LINKERD_SITE_TOKEN }}
run: |-
echo "${LINKERD_SITE_TOKEN}" | base64 -d > .gcp.json
gcloud auth activate-service-account --key-file=.gcp.json
- name: Publish
run: |-
make publish
gsutil -m setmeta -r -h "Cache-Control: no-cache, no-store, must-revalidate" gs://linkerd.io/
gsutil -m setmeta -r -h "Cache-Control:" gs://linkerd.io/