Resume/.gitea/workflows/build.yml

36 lines
1.3 KiB
YAML
Raw Normal View History

2023-07-25 16:16:36 -04:00
name: Build Site
run-name: ${{ github.actor }} is building Resume
on: [push]
jobs:
Build-Site:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- run: echo "Starting build job"
- uses: actions/checkout@v3
2023-07-27 10:28:01 -04:00
- run: |
2023-07-27 10:28:42 -04:00
apt update
2023-07-27 10:35:00 -04:00
apt install -y libnss3 libx11-xcb1 libxcomposite1 libasound2 libatk1.0-0 libatk-bridge2.0-0 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6
2023-07-25 16:16:36 -04:00
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
2023-07-27 10:24:41 -04:00
- run: npm ci
- run: npm run cibuild
2023-07-27 10:18:39 -04:00
- name: Upload pdf
uses: actions/upload-artifact@v3
with:
name: PDF
2023-07-27 10:19:34 -04:00
path: build/resume.pdf
2023-07-27 10:18:39 -04:00
# - name: setup go
# uses: https://github.com/actions/setup-go@v4
# with:
# go-version: '>=1.20.1'
# - name: Create Release
# uses: actions/release-action@main
# with:
# files: |-
# build/*.pdf