Skip to content

feat: add mobile features (#10) #23

feat: add mobile features (#10)

feat: add mobile features (#10) #23

Workflow file for this run

name: Publish
on:
push:
branches:
- main
- master
permissions:
contents: write
jobs:
ci:
name: Publish
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: npm ci
- name: Lint YAMLs
run: npx featurevisor lint
- name: Test specs
run: npx featurevisor test
- name: Build
run: npx featurevisor build
- name: Git configs
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- name: Upload to Cloudflare Pages
run: |
echo "<html><body>It works.</body></html>" > datafiles/index.html
npx wrangler pages deploy datafiles --project-name="featurevisor-example-cloudflare"
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- name: Push back to origin
run: |
git add .featurevisor/*
git commit -m "[skip ci] Revision $(cat .featurevisor/REVISION)"
git push