Skip to content

Commit

Permalink
comment out stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AA25 committed Jul 1, 2024
1 parent c4231a5 commit c10131c
Showing 1 changed file with 49 additions and 50 deletions.
99 changes: 49 additions & 50 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:

jobs:
build:
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- name: checkout repo
Expand All @@ -18,52 +17,52 @@ jobs:
- run: npm install
- run: npm run build

test:
needs: build
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
- name: use node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
- run: npm install
- run: npm test

deploy:
needs: test

permissions:
contents: write
pages: write
id-token: write

environment:
name: staging
url: ${{ steps.deployment.outputs.page_url }} # output of the deployment in steps

runs-on: ubuntu-latest

steps:
- name: checkout repo
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: use node.js
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: configure github pages
uses: actions/configure-pages@v5
with:
static_site_generator: next # allows the nextjs website to be build
- run: npm install
- run: npm run build
- name: upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: './out'
- name: deploy
id: deployment
uses: actions/deploy-pages@v4
# test:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: checkout repo
# uses: actions/checkout@v4
# - name: use node.js
# uses: actions/setup-node@v4
# with:
# node-version: '18.x'
# - run: npm install
# - run: npm test
#
# deploy:
# needs: test
#
# permissions:
# contents: write
# pages: write
# id-token: write
#
# environment:
# name: staging
# url: ${{ steps.deployment.outputs.page_url }} # output of the deployment in steps
#
# runs-on: ubuntu-latest
#
# steps:
# - name: checkout repo
# uses: actions/checkout@v4
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# - name: use node.js
# uses: actions/setup-node@v4
# with:
# node-version: '18.x'
# - name: configure github pages
# uses: actions/configure-pages@v5
# with:
# static_site_generator: next # allows the nextjs website to be build
# - run: npm install
# - run: npm run build
# - name: upload artifacts
# uses: actions/upload-pages-artifact@v3
# with:
# path: './out'
# - name: deploy
# id: deployment
# uses: actions/deploy-pages@v4

0 comments on commit c10131c

Please sign in to comment.