Skip to content

Move language spec upload from Github actions to cloud build: Add cloudbuild.yaml #4323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
5 changes: 5 additions & 0 deletions .cloud_build/specification/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
steps:
- name: 'ubuntu'
args: ['specification/scripts/build_pdf']
options:
logging: CLOUD_LOGGING_ONLY
1 change: 1 addition & 0 deletions specification/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ dartLangSpec*.toc
*-list.txt
.dart_tool/
.packages
firebase/
13 changes: 13 additions & 0 deletions specification/scripts/build_pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env -S bash --norc

apt-get update -qq
apt-get install -y --no-install-recommends \
build-essential \
texlive-latex-base \
texlive-latex-extra \
texlive-fonts-recommended \
lmodern
cd specification
make
mkdir firebase
cp dartLangSpec.pdf firebase/DartLangSpecDraft.pdf