Skip to content

Merge pull request #230 from Jean-BaptisteC/peertube_videos #67

Merge pull request #230 from Jean-BaptisteC/peertube_videos

Merge pull request #230 from Jean-BaptisteC/peertube_videos #67

Workflow file for this run

# Workflow for building and deploying a static site to GitHub Pages
name: Deploy static site with GitHub Pages dependencies preinstalled
env:
# Year of site
YEAR: "2024"
on:
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./${{ env.YEAR }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }}
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: ls
- name: Install dependencies
run: npm install
- name: Build site
run: npm run build --if-present
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./${{ env.YEAR }}/dist"
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4