@reveldigital/gadgetizer 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,33 @@
1
+ name: Deploy GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # or master, depending on your default branch
7
+
8
+ jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Setup Node.js (if applicable for building)
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '20.x' # Adjust as needed for your project
19
+
20
+ - name: Install dependencies (if applicable)
21
+ run: npm install # Or yarn install, etc.
22
+
23
+ - name: Build static site (if applicable)
24
+ run: npm run build # Or your specific build command
25
+
26
+ - name: Gadgetizer
27
+ run: npx @reveldigital/gadgetizer@latest --build-only
28
+
29
+ - name: Deploy to GitHub Pages
30
+ uses: peaceiris/actions-gh-pages@v4
31
+ with:
32
+ github_token: ${{ secrets.GITHUB_TOKEN }}
33
+ publish_dir: ./dist # Or your output directory, e.g., ./dist, ./public
package/bin.js CHANGED
@@ -1,3 +1,3 @@
1
- #!/usr/bin/env node --no-warnings
1
+ #!/usr/bin/env node
2
2
 
3
3
  import('./dist/cli.js');
@@ -0,0 +1,33 @@
1
+ name: Deploy GitHub Pages
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # or master, depending on your default branch
7
+
8
+ jobs:
9
+ build-and-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout repository
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Setup Node.js (if applicable for building)
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '20.x' # Adjust as needed for your project
19
+
20
+ - name: Install dependencies (if applicable)
21
+ run: npm install # Or yarn install, etc.
22
+
23
+ - name: Build static site (if applicable)
24
+ run: npm run build # Or your specific build command
25
+
26
+ - name: Gadgetizer
27
+ run: npx @reveldigital/gadgetizer@latest --build-only
28
+
29
+ - name: Deploy to GitHub Pages
30
+ uses: peaceiris/actions-gh-pages@v4
31
+ with:
32
+ github_token: ${{ secrets.GITHUB_TOKEN }}
33
+ publish_dir: ./dist # Or your output directory, e.g., ./dist, ./public