Skip to content

Commit

Permalink
Merge pull request #9 from Stan370/dev1
Browse files Browse the repository at this point in the history
deploy
  • Loading branch information
Stan370 authored Nov 21, 2023
2 parents 9f7ce22 + 800f456 commit 2e26ef6
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/page.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Pages

on:
push:
branches:
- main # default branch

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: asdf
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Cache NPM dependencies
uses: actions/cache@3
with:
path: stanBlog/node_modules
# key: ${{ runner.OS }}-npm-cache
# restore-keys: |
# ${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: https://stan370.github.io/
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3

0 comments on commit 2e26ef6

Please sign in to comment.