Skip to content

Merge pull request #40 from tasuren/dependabot/npm_and_yarn/astrojs/s… #156

Merge pull request #40 from tasuren/dependabot/npm_and_yarn/astrojs/s…

Merge pull request #40 from tasuren/dependabot/npm_and_yarn/astrojs/s… #156

Workflow file for this run

name: Deploy to GitHub Pages
on:
repository_dispatch:
types:
- update_cms
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
environment: github-pages
env:
MICROCMS_API_KEY: ${{ secrets.MICROCMS_API_KEY }}
MICROCMS_SERVICE_DOMAIN: ${{ vars.MICROCMS_SERVICE_DOMAIN}}
steps:
- name: Checkout your repository using git
uses: actions/checkout@v3
- name: Install, build, and upload your site
uses: withastro/action@v0
with:
pnpm-version: ^8.7.1
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@v1