Skip to content

Merge pull request #8 from Super12138/renovate/actions-setup-node-4.x #35

Merge pull request #8 from Super12138/renovate/actions-setup-node-4.x

Merge pull request #8 from Super12138/renovate/actions-setup-node-4.x #35

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/[email protected]
with:
fetch-depth: 0
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 20
- name: Setup Pages
uses: actions/[email protected]
- 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/[email protected]
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/[email protected]