@@ -14,40 +14,33 @@ jobs:
1414 - name : Install sys tools/deps
1515 run : |
1616 sudo apt-get update
17- sudo apt-get install ttfautohint
17+ sudo apt-get install ttfautohint libcairo2-dev pkg-config python3-dev
1818 sudo snap install yq
1919 - uses : actions/cache@v4
2020 with :
2121 path : ./venv/
2222 key : ${{ runner.os }}-venv-${{ hashFiles('**/requirements*.txt') }}
2323 restore-keys : |
2424 ${{ runner.os }}-venv-
25- # - name: Do first-run script if necessary
26- # run: make .init.stamp
27- # if: github.repository != 'googlefonts/googlefonts-project-template'
28- # - uses: stefanzweifel/git-auto-commit-action@v4
29- # name: First-run setup
30- # if: github.repository != 'googlefonts/googlefonts-project-template'
31- # with:
32- # file_pattern: .init.stamp README.md requirements.txt OFL.txt
33- # commit_message: "Personalize for this repo"
3425 - name : gen zip file name
3526 id : zip-name
3627 shell : bash
3728 # Set the archive name to repo name + "-assets" e.g "MavenPro-assets"
3829 run : echo "ZIP_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')-fonts" >> $GITHUB_ENV
39- # If a new release is cut, use the release tag to auto-bump the source files
40- - name : Bump release
41- if : github.event_name == 'release'
42- run : |
43- . venv/bin/activate
44- SRCS=$(yq e ".sources[]" sources/config.yaml)
45- TAG_NAME=${GITHUB_REF/refs\/tags\//}
46- echo "Bumping $SRCS to $TAG_NAME"
47- for src in $SRCS
48- do
49- bumpfontversion sources/$src --new-version $TAG_NAME;
50- done
30+
31+ # # If a new release is cut, use the release tag to auto-bump the source files
32+ # - name: Bump release
33+ # if: github.event_name == 'release'
34+ # run: |
35+ # . venv/bin/activate
36+ # SRCS=$(yq e ".sources[]" sources/config.yaml)
37+ # TAG_NAME=${GITHUB_REF/refs\/tags\//}
38+ # echo "Bumping $SRCS to $TAG_NAME"
39+ # for src in $SRCS
40+ # do
41+ # bumpfontversion sources/$src --new-version $TAG_NAME;
42+ # done
43+
5144 - name : Build font
5245 run : make build
5346 - name : Check with fontbakery
@@ -58,11 +51,10 @@ jobs:
5851 - name : setup site
5952 run : mkdir out && cp scripts/index.html out/index.html && cp Sixtyfour/scripts/index.html out/index-sixtyfour.html && cp Workbench/scripts/index.html out/index-workbench.html
6053 - name : Deploy
61- uses : peaceiris/ actions-gh- pages@v4
54+ uses : actions/upload- pages-artifact@v3.0.1
6255 if : ${{ github.ref == 'refs/heads/main' }}
6356 with :
64- github_token : ${{ secrets.GITHUB_TOKEN }}
65- publish_dir : ./out
57+ path : ./out
6658 - name : Archive artifacts
6759 uses : actions/upload-artifact@v4
6860 with :
7264 out
7365 outputs :
7466 zip_name : ${{ env.ZIP_NAME }}
67+
68+ deploy :
69+ name : Deploy website to GitHub Pages
70+ needs : build
71+ runs-on : ubuntu-latest
72+ permissions :
73+ pages : write
74+ id-token : write
75+ environment :
76+ name : github-pages
77+ url : ${{ steps.deployment.outputs.page_url }}
78+ steps :
79+ - name : Deploy to GitHub Pages
80+ id : deployment
81+ uses : actions/deploy-pages@v4
82+
83+ # There are two ways a release can be created: either by pushing a tag, or by
84+ # creating a release from the GitHub UI. Pushing a tag does not automatically
85+ # create a release, so we have to do that ourselves. However, creating a
86+ # release from the GitHub UI *does* push a tag, and we don't want to create
87+ # a new release in that case because one already exists!
88+
7589 release :
7690 name : Create and populate release
7791 needs : build
0 commit comments