Merge pull request #108 from MathisBurger/dependabot/npm_and_yarn/cro… #55
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: publish | |
on: | |
push: | |
branches: ['master'] | |
jobs: | |
gh-pages: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm i | |
- run: npm run build | |
- name: Deploy to Github Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build | |
docker: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout code | |
uses: actions/checkout@v2 | |
- name: set up qemu | |
uses: docker/setup-qemu-action@v1 | |
- name: set up buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: log in to ghcr | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: mathisburger | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: build and push | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
tags: ghcr.io/mathisburger/mathonweb:latest |