Add a Twitter link #13
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: build | |
on: | |
push: | |
branches: [ dev, rel/* ] | |
tags: [ '*' ] | |
pull_request: | |
branches: [ dev, rel/* ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: pages | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Setup Node | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: Setup GitHub Pages | |
uses: actions/configure-pages@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d # v4.0.0 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build with VitePress | |
run: npm run docs:build | |
- name: Publish artifacts | |
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1 | |
with: | |
path: .vitepress/dist | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.event.repository.fork == false && github.ref == 'refs/heads/dev' | |
environment: | |
name: github-pages | |
url: https://openiddict.com/ | |
steps: | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 | |
id: deployment |