Skip to content

Commit

Permalink
Create main.yml (#3)
Browse files Browse the repository at this point in the history
* Create main.yml

Let's set up some basic CI

* Update main.yml

temporarily remove folder restriction
  • Loading branch information
seanidzenga authored Sep 4, 2024
1 parent 6dbf9cd commit ffe4efa
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./portfolio
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: install node modules
run: npm install --no-audit
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "Shodan <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}

0 comments on commit ffe4efa

Please sign in to comment.