Add brunnobb.change-audio-device to gallery (#157) #10
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 extension gallery to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - pages/** | |
| - extensions.json | |
| - extensions/** | |
| - .github/workflows/deploy-pages.yml | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Build and upload Astro site | |
| uses: withastro/action@e84f40bd8d2caa9e768ec82ad30dd81f0b280853 # v6.1.2 | |
| with: | |
| path: ./pages | |
| env: | |
| ASTRO_SITE: "${{ vars.CMDPAL_GALLERY_SITE || format('https://{0}.github.io', github.repository_owner) }}" | |
| ASTRO_BASE: "${{ vars.CMDPAL_GALLERY_BASE || format('/{0}', github.event.repository.name) }}" | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 |