Skip to content

Instantly share code, notes, and snippets.

@shiburagi
Last active November 29, 2023 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shiburagi/af2afb010b78558c520d76e73d1c99ae to your computer and use it in GitHub Desktop.
Save shiburagi/af2afb010b78558c520d76e73d1c99ae to your computer and use it in GitHub Desktop.
name: Frontend CI
permissions:
contents: write
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Install dependencies
- name: Install Dependencies
run: npm install
# Optional: Add steps for linting JavaScript and CSS
# - name: Lint JavaScript
# run: <your-js-linter-command>
# - name: Lint CSS
# run: <your-css-linter-command>
# Optional: Add steps for any tests you might have
# - name: Run Tests
# run: <your-test-command>
# Deployment step (example for GitHub Pages)
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
repo-token: ${{ secrets.MY_GITHUB_TOKEN }}
 publish_dir: ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment