From ffe4efa8a63fa6b9825971fca7ed6e73ecadbb70 Mon Sep 17 00:00:00 2001 From: Sean Idzenga <3802836+seanidzenga@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:43:29 -0400 Subject: [PATCH] Create main.yml (#3) * Create main.yml Let's set up some basic CI * Update main.yml temporarily remove folder restriction --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..43f11bc --- /dev/null +++ b/.github/workflows/main.yml @@ -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 " + env: + GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}