Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kolosovpetro/04bced7ac3a78b1726549e01367458f8 to your computer and use it in GitHub Desktop.
Save kolosovpetro/04bced7ac3a78b1726549e01367458f8 to your computer and use it in GitHub Desktop.
name: GitHub Pages Deploy
on:
push:
branches:
- github-pages
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14.x ]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build-dev --if-present
- run: cp dist/mango-angular-frontend/index.html dist/mango-angular-frontend/404.html
- name: SSH-agent
uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.GITPAGES_DEPLOY_KEY }}
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
repository-name: razumovskii/razumovskii.github.io
ssh-key: true
branch: master
folder: dist/mango-angular-frontend
clean: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment