|
24 | 24 | with: |
25 | 25 | name: ${{ matrix.cart }}_c |
26 | 26 | path: ${{ matrix.cart }}_c.null0 |
| 27 | + |
27 | 28 | js: |
28 | 29 | name: Build & Publish JS Carts |
29 | 30 | runs-on: ubuntu-latest |
|
42 | 43 | with: |
43 | 44 | name: ${{ matrix.cart }}_js |
44 | 45 | path: ${{ matrix.cart }}_js.null0 |
| 46 | + |
45 | 47 | as: |
46 | 48 | name: Build & Publish Assemblyscript Carts |
47 | 49 | runs-on: ubuntu-latest |
|
59 | 61 | with: |
60 | 62 | name: ${{ matrix.cart }}_as |
61 | 63 | path: ${{ matrix.cart }}_as.null0 |
| 64 | + |
62 | 65 | nelua: |
63 | 66 | name: Build & Publish Nelua Carts |
64 | 67 | runs-on: ubuntu-latest |
@@ -109,3 +112,34 @@ jobs: |
109 | 112 | uses: softprops/action-gh-release@v2 |
110 | 113 | with: |
111 | 114 | files: artifacts/**/*.null0 |
| 115 | + |
| 116 | + deploy-pages: |
| 117 | + name: Deploy to GitHub Pages |
| 118 | + runs-on: ubuntu-latest |
| 119 | + needs: [c, js, as, nelua] |
| 120 | + permissions: |
| 121 | + pages: write |
| 122 | + id-token: write |
| 123 | + environment: |
| 124 | + name: github-pages |
| 125 | + url: ${{ steps.deployment.outputs.page_url }} |
| 126 | + steps: |
| 127 | + - name: Checkout |
| 128 | + uses: actions/checkout@v4 |
| 129 | + - name: Download all artifacts |
| 130 | + uses: actions/download-artifact@v4 |
| 131 | + with: |
| 132 | + path: artifacts |
| 133 | + - name: Prepare Pages content |
| 134 | + run: | |
| 135 | + mkdir -p _site |
| 136 | + cp -r demo/* _site/ |
| 137 | + cp -r artifacts/**/*.null0 _site/carts/ |
| 138 | + ls _site/carts/*.null0 > _site/carts/carts.txt |
| 139 | + - name: Upload Pages artifact |
| 140 | + uses: actions/upload-pages-artifact@v3 |
| 141 | + with: |
| 142 | + path: _site |
| 143 | + - name: Deploy to GitHub Pages |
| 144 | + id: deployment |
| 145 | + uses: actions/deploy-pages@v4 |
0 commit comments