Created
February 15, 2023 12:32
-
-
Save kolosovpetro/04bced7ac3a78b1726549e01367458f8 to your computer and use it in GitHub Desktop.
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: 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/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.GITPAGES_DEPLOY_KEY }} | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
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