self host GitHub banner and DPG logo #319
Workflow file for this run
This file contains 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: Github Pages Astro CI | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: withastro/action@v0 | |
with: | |
pnpm-version: 8 | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
if: ${{ github.ref_name == 'main' && github.event_name == 'push' }} | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: 📢 Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |