Skip to content

Build Storefront.json #7189

Build Storefront.json

Build Storefront.json #7189

name: Build Storefront.json
on:
workflow_dispatch:
push:
branches:
- main
paths:
- storefront_base.json
- pak.json
- app/storefront_builder.go
schedule:
- cron: "0 * * * *"
permissions:
contents: write
jobs:
stock-shelves:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.1'
- name: Build Storefront.json
run: go run app/storefront_builder.go
env:
GOWORK: off
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Create deployment directory
run: |
mkdir -p deploy
cp storefront.json deploy/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: deploy
branch: gh-pages
token: ${{ secrets.GITHUB_TOKEN }}