chore: update my_feature (#4) #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
ci: | |
name: Publish | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- 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>" > dist/index.html | |
npx wrangler pages deploy dist --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 |