File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish webapp
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - deploy/web # Change this to the branch you want to trigger the publish
7
+
8
+ jobs :
9
+ build-and-publish :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Set up Node.js
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : ' 18' # Specify the Node.js version you need
20
+ registry-url : ' https://registry.npmjs.org'
21
+
22
+ - name : Install BeyondJS globally
23
+ run : npm install -g beyond@latest
24
+
25
+ - name : Install dependencies
26
+ working-directory : src
27
+ run : npm install
28
+
29
+ - name : Build package
30
+ run : beyond build --pkg=pragmate-ui-docs --distribution=web --logs
31
+
32
+ - name : Publish to NPM
33
+ working-directory : src/.beyond/builds/npm/code
34
+ env :
35
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
36
+ run : npm publish
37
+
38
+ - name : Deploy to Netlify
39
+ env :
40
+ NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }} # Add your Netlify token in GitHub secrets
41
+ run : |
42
+ npm install -g netlify-cli # Ensure Netlify CLI is installed
43
+ netlify deploy --prod --dir=path-to-build-directory --auth=$NETLIFY_AUTH_TOKEN --site=9f68faf7-2c8c-4c04-8258-fbb000813766
You can’t perform that action at this time.
0 commit comments