Last active
November 29, 2023 16:20
-
-
Save shiburagi/af2afb010b78558c520d76e73d1c99ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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