Skip to content

oshx is running out GitHub Actions 🚀 #4

oshx is running out GitHub Actions 🚀

oshx is running out GitHub Actions 🚀 #4

Workflow file for this run

name: GitHub Actions for Pages Deployment
run-name: ${{ github.actor }} is running out GitHub Actions 🚀
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Check out
uses: actions/checkout@v4
- run: echo "🎉 Event [${{ github.event_name }}] \n🔎 Repository [${{ github.repository }}] \n🐧 OS [${{ runner.os }}] \n⭐ Branch[${{ github.ref }}]"
- name: Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './public/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4