Skip to content

Merge pull request #5 from Super12138/renovate/actions-checkout-4.x #26

Merge pull request #5 from Super12138/renovate/actions-checkout-4.x

Merge pull request #5 from Super12138/renovate/actions-checkout-4.x #26

Workflow file for this run

name: Deploy
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
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
uses: actions/checkout@v4.2.0
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4.0.4
with:
node-version: 20
- name: Setup Pages
uses: actions/configure-pages@v5.0.0
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Upload artifact
if: success() && github.event_name != 'pull_request' && github.repository == 'Super12138/Ask-Yourself'
uses: actions/upload-pages-artifact@v3.0.1
with:
path: dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
if: success() && github.event_name != 'pull_request' && github.repository == 'Super12138/Ask-Yourself'
id: deployment
uses: actions/deploy-pages@v4.0.5