Skip to content

Commit

Permalink
ci/cd: push workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TrickEye committed Jan 31, 2024
1 parent 8da84a8 commit de61b99
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-to-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Replace Vite Config Base
run: mv vite.config.js vite.config.azure.js && mv vite.config.github.js vite.config.js && sed -i '1s/.*/const base = "dandelion"/' src/main.js && cat src/main.js
- name: Install Yarn
run: npm install -g yarn
- name: Install Dependencies
run: yarn install
- name: Build
run: yarn build
- name: Touch .nojekyll
run: touch dist/.nojekyll
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist

0 comments on commit de61b99

Please sign in to comment.