mirror of
https://github.com/denoland/deno
synced 2024-08-28 20:39:51 +00:00
chore: update Google Cloud actions (#22839)
These actions use Node 20 instead of 16 (which is deprecated).
This commit is contained in:
parent
9593cf2852
commit
2ce645137a
8
.github/workflows/ci.generate.ts
vendored
8
.github/workflows/ci.generate.ts
vendored
|
@ -203,7 +203,7 @@ const installDenoStep = {
|
||||||
|
|
||||||
const authenticateWithGoogleCloud = {
|
const authenticateWithGoogleCloud = {
|
||||||
name: "Authenticate with Google Cloud",
|
name: "Authenticate with Google Cloud",
|
||||||
uses: "google-github-actions/auth@v1",
|
uses: "google-github-actions/auth@v2",
|
||||||
with: {
|
with: {
|
||||||
"project_id": "denoland",
|
"project_id": "denoland",
|
||||||
"credentials_json": "${{ secrets.GCP_SA_KEY }}",
|
"credentials_json": "${{ secrets.GCP_SA_KEY }}",
|
||||||
|
@ -510,7 +510,7 @@ const ci = {
|
||||||
"(github.ref == 'refs/heads/main' ||",
|
"(github.ref == 'refs/heads/main' ||",
|
||||||
"startsWith(github.ref, 'refs/tags/'))",
|
"startsWith(github.ref, 'refs/tags/'))",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
uses: "google-github-actions/setup-gcloud@v1",
|
uses: "google-github-actions/setup-gcloud@v2",
|
||||||
with: {
|
with: {
|
||||||
project_id: "denoland",
|
project_id: "denoland",
|
||||||
},
|
},
|
||||||
|
@ -525,7 +525,7 @@ const ci = {
|
||||||
"(github.ref == 'refs/heads/main' ||",
|
"(github.ref == 'refs/heads/main' ||",
|
||||||
"startsWith(github.ref, 'refs/tags/'))",
|
"startsWith(github.ref, 'refs/tags/'))",
|
||||||
].join("\n"),
|
].join("\n"),
|
||||||
uses: "google-github-actions/setup-gcloud@v1",
|
uses: "google-github-actions/setup-gcloud@v2",
|
||||||
env: {
|
env: {
|
||||||
CLOUDSDK_PYTHON: "${{env.pythonLocation}}\\python.exe",
|
CLOUDSDK_PYTHON: "${{env.pythonLocation}}\\python.exe",
|
||||||
},
|
},
|
||||||
|
@ -1061,7 +1061,7 @@ const ci = {
|
||||||
authenticateWithGoogleCloud,
|
authenticateWithGoogleCloud,
|
||||||
{
|
{
|
||||||
name: "Setup gcloud",
|
name: "Setup gcloud",
|
||||||
uses: "google-github-actions/setup-gcloud@v1",
|
uses: "google-github-actions/setup-gcloud@v2",
|
||||||
with: {
|
with: {
|
||||||
project_id: "denoland",
|
project_id: "denoland",
|
||||||
},
|
},
|
||||||
|
|
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -209,7 +209,7 @@ jobs:
|
||||||
(github.ref == 'refs/heads/main' ||
|
(github.ref == 'refs/heads/main' ||
|
||||||
startsWith(github.ref, 'refs/tags/')))
|
startsWith(github.ref, 'refs/tags/')))
|
||||||
name: Authenticate with Google Cloud
|
name: Authenticate with Google Cloud
|
||||||
uses: google-github-actions/auth@v1
|
uses: google-github-actions/auth@v2
|
||||||
with:
|
with:
|
||||||
project_id: denoland
|
project_id: denoland
|
||||||
credentials_json: '${{ secrets.GCP_SA_KEY }}'
|
credentials_json: '${{ secrets.GCP_SA_KEY }}'
|
||||||
|
@ -223,7 +223,7 @@ jobs:
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' ||
|
(github.ref == 'refs/heads/main' ||
|
||||||
startsWith(github.ref, 'refs/tags/')))
|
startsWith(github.ref, 'refs/tags/')))
|
||||||
uses: google-github-actions/setup-gcloud@v1
|
uses: google-github-actions/setup-gcloud@v2
|
||||||
with:
|
with:
|
||||||
project_id: denoland
|
project_id: denoland
|
||||||
- name: Setup gcloud (windows)
|
- name: Setup gcloud (windows)
|
||||||
|
@ -234,7 +234,7 @@ jobs:
|
||||||
github.repository == 'denoland/deno' &&
|
github.repository == 'denoland/deno' &&
|
||||||
(github.ref == 'refs/heads/main' ||
|
(github.ref == 'refs/heads/main' ||
|
||||||
startsWith(github.ref, 'refs/tags/')))
|
startsWith(github.ref, 'refs/tags/')))
|
||||||
uses: google-github-actions/setup-gcloud@v1
|
uses: google-github-actions/setup-gcloud@v2
|
||||||
env:
|
env:
|
||||||
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
|
CLOUDSDK_PYTHON: '${{env.pythonLocation}}\python.exe'
|
||||||
with:
|
with:
|
||||||
|
@ -672,14 +672,14 @@ jobs:
|
||||||
if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main'
|
if: github.repository == 'denoland/deno' && github.ref == 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
- name: Authenticate with Google Cloud
|
- name: Authenticate with Google Cloud
|
||||||
uses: google-github-actions/auth@v1
|
uses: google-github-actions/auth@v2
|
||||||
with:
|
with:
|
||||||
project_id: denoland
|
project_id: denoland
|
||||||
credentials_json: '${{ secrets.GCP_SA_KEY }}'
|
credentials_json: '${{ secrets.GCP_SA_KEY }}'
|
||||||
export_environment_variables: true
|
export_environment_variables: true
|
||||||
create_credentials_file: true
|
create_credentials_file: true
|
||||||
- name: Setup gcloud
|
- name: Setup gcloud
|
||||||
uses: google-github-actions/setup-gcloud@v1
|
uses: google-github-actions/setup-gcloud@v2
|
||||||
with:
|
with:
|
||||||
project_id: denoland
|
project_id: denoland
|
||||||
- name: Upload canary version file to dl.deno.land
|
- name: Upload canary version file to dl.deno.land
|
||||||
|
|
Loading…
Reference in a new issue