Skip to content

Commit c7da49d

Browse files
committed
Modernize CI
1 parent 5f8b3b9 commit c7da49d

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/publish.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
branches:
55
- master
6+
workflow_dispatch: # Allows manual triggering of the workflow
7+
68
jobs:
79
publish:
810
runs-on: ubuntu-latest
@@ -11,9 +13,13 @@ jobs:
1113
- uses: docker://blang/latex:ubuntu
1214
with:
1315
args: latexmk -pdf -outdir=./_build
14-
- uses: google-github-actions/setup-gcloud@v0
16+
steps:
17+
- name: "Authenticate GCloud"
18+
id: "auth"
19+
uses: "google-github-actions/auth@v2"
1520
with:
16-
version: "290.0.1"
17-
service_account_key: ${{ secrets.GCP_SA_KEY }}
18-
export_default_credentials: true
19-
- run: gsutil cp _build/LJMiranda_CV.pdf gs://ljvmiranda/cv.pdf
21+
credentials_json: "${{ secrets.GCP_SA_KEY }}"
22+
- name: "Set-up GCloud SDK"
23+
uses: "google-github-actions/setup-gcloud@v2"
24+
- name: "Upload output PDF"
25+
run: gsutil cp _build/LJMiranda_CV.pdf gs://ljvmiranda/cv.pdf

0 commit comments

Comments
 (0)