Merge pull request #227 from Skyost/comment-79817c2e-43a5-4f0d-bed0-c… #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Delivery | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
configure: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
outputs: | |
containerUser: ${{ steps.get-user.outputs.containerUser }} | |
steps: | |
- id: get-user | |
run: echo "containerUser=`id -u`:`id -g`" >> $GITHUB_OUTPUT | |
build: | |
needs: configure | |
runs-on: ${{ matrix.os }} | |
container: | |
image: skyost/latex-docker | |
options: --user ${{ needs.configure.outputs.containerUser }} | |
strategy: | |
matrix: | |
os: [ ubuntu-latest ] | |
node: [ 16 ] | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
- name: Setup Node.js ${{ matrix.node-version }} 🏗 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install dependencies 👨🏻💻 | |
run: npm ci | |
- name: Generate ⚙️ | |
run: npm run generate | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
folder: dist | |
branch: gh-pages | |
single-commit: true |