-
Notifications
You must be signed in to change notification settings - Fork 64
39 lines (35 loc) · 1.27 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Automatic release
on:
# Action is triggered on every commit to the master branch.
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Build manifest
run: ./buildtools/publish.js manifest.json
# Create new release tagged as latest, and overwrite last one.
# https://github.com/marvinpinto/actions/tree/master/packages/automatic-releases
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
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