Skip to content

Commit

Permalink
make manifest.json available for use from browsers (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed Jul 24, 2023
1 parent 9cead88 commit cc36fc9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- uses: actions/checkout@v3

- name: Build manifest
run: ./_build/publish.js
# Create new release tagged as latest, and overwrite last one.
Expand All @@ -21,3 +23,14 @@ jobs:
prerelease: false
title: "Automatic release"
files: manifest.json

# Would like a version of manifest.json that is usable from browsers
# for grist-static. CORS wildcard is not set on releases, but is set
# on github pages. Also jsdelivr can mirror branches, but not releases.
- name: Make a release branch that includes manifest.json
run: |
git config user.name "Paul's Grist Bot"
git config user.email "<[email protected]>"
git add -f manifest.json
git commit -m "add manifest.json" -a
git push --set-upstream origin HEAD:release -f

0 comments on commit cc36fc9

Please sign in to comment.