Skip to content

v1.0.2

v1.0.2 #31

Workflow file for this run

name: Deploy to GitHub Pages
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4
# Step 2: Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
# Step 3: Install latest version of poolzfinance/reacthelper
- name: Install dependencies
run: npm i @poolzfinance/reacthelper
# Step 4: Build the project (generate JSON files and copy index.html)
- name: Build project
run: npm run generate # This should generate the `dist` folder
# Step 5: Upload static files as artifact
- name: Upload artifact for deployment
uses: actions/upload-pages-artifact@v3
with:
path: dist/ # The folder that contains the built files
deploy:
# Deploy job depends on the build job
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
# Step 6: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4