Custom view comparing and environment dependency tracking (#22) #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy examples to Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths-ignore: | |
| - "**/README.md" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| env: | |
| SWIFT_VERSION: 6.2-snapshot-2025-08-21 | |
| WASM_SDK_URL: https://download.swift.org/swift-6.2-branch/wasm-sdk/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-08-21-a/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-08-21-a_wasm.artifactbundle.tar.gz | |
| WASM_SDK_CHECKSUM: 46984066d3c93add1ef2e12914fc5af3814b722ada26aa13690def663236e675 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: beeauvin/swiftly-swift@v1 | |
| with: | |
| swift-version: ${{ env.SWIFT_VERSION }} | |
| - name: Install Swift WASM SDK | |
| run: swift sdk install ${{ env.WASM_SDK_URL }} --checksum ${{ env.WASM_SDK_CHECKSUM }} | |
| - name: Install wasm-opt | |
| uses: phi-ag/setup-binaryen@v1 | |
| with: | |
| version: "123" | |
| - name: Build | |
| working-directory: Examples/Swiftle | |
| run: ./build.sh | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: "Examples/Swiftle/Public" | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |