Skip to content

Merge pull request #19 from vipyrsec/dependabot/github_actions/withas… #54

Merge pull request #19 from vipyrsec/dependabot/github_actions/withas…

Merge pull request #19 from vipyrsec/dependabot/github_actions/withas… #54

Workflow file for this run

name: "Deploy to GitHub Pages"
on:
push:
branches: [ main ]
pull_request:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: "Install, build, and upload your site"
uses: withastro/action@e3193ac80e18917ceaeb9f2d47019ad3b2c0416a # v0.3.0
deploy:
if: ${{ github.ref == 'refs/heads/main' }}
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@12ab2b16cf43a7a061fe99da74b6f8f11fb77f5b # v2.0.3