add: concurrency and default branch ref
This commit is contained in:
+11
-7
@@ -2,25 +2,29 @@
|
|||||||
#
|
#
|
||||||
# To get started with Astro see: https://docs.astro.build/en/getting-started/
|
# To get started with Astro see: https://docs.astro.build/en/getting-started/
|
||||||
#
|
#
|
||||||
|
|
||||||
name: Deploy Astro site to Pages
|
name: Deploy Astro site to Pages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# Runs on pushes targeting the default branch
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [$default-branch]
|
||||||
# paths:
|
|
||||||
# only needed when project in subfolder
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
# - "subfolder"
|
|
||||||
# - ".github/workflows/astro.yml"
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
pages: write
|
pages: write
|
||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
|
# Allow one concurrent deployment
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PAT: '.' # default value when not using subfolders
|
PAT: "." # default value when not using subfolders
|
||||||
# PAT: subfolder
|
# PAT: subfolder
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Reference in New Issue
Block a user