-
Notifications
You must be signed in to change notification settings - Fork 63
46 lines (40 loc) · 1.18 KB
/
Copy pathdeploy-pages.yml
File metadata and controls
46 lines (40 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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@3eafd002e65cc31b4f0eae0bb05450d521562247 # v6.1.3
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@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1