Skip to content

Commit

Permalink
add workflow dispatch
Browse files Browse the repository at this point in the history
this is half to rerun CI since netlify certs are kinda broken for some reason
  • Loading branch information
joshuanianji committed Jan 8, 2024
1 parent daa1362 commit b57a673
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,33 @@ on:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout
uses: actions/checkout@v4

- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Download lamdera
run: curl https://static.lamdera.com/bin/linux/lamdera-next-alpine-musl -o /usr/local/bin/lamdera && chmod a+x /usr/local/bin/lamdera

- name: Install dependencies
run: npm ci
# so we have the .elm-pages folder
- name: Build

# so we have the .elm-pages folder
- name: Build
run: npm run build

- name: Run Tests
run: npm test

# https://github.com/South-Paw/action-netlify-cli
deploy:
needs: test
Expand All @@ -44,24 +45,24 @@ jobs:
env: production
step: start

- name: Checkout
- name: Checkout
uses: actions/checkout@v4

- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: 18

- name: Download lamdera
run: curl https://static.lamdera.com/bin/linux/lamdera-next-alpine-musl -o /usr/local/bin/lamdera && chmod a+x /usr/local/bin/lamdera

- name: Install dependencies
run: npm ci
# so we have the .elm-pages folder
- name: Build

# so we have the .elm-pages folder
- name: Build
run: npm run build

- name: Deploy to Netlify
uses: South-Paw/action-netlify-cli@v2
id: netlify
Expand All @@ -80,4 +81,4 @@ jobs:
step: finish
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env_url: ${{ fromJson(steps.netlify.outputs.NETLIFY_OUTPUT).url }}
env_url: ${{ fromJson(steps.netlify.outputs.NETLIFY_OUTPUT).url }}

0 comments on commit b57a673

Please sign in to comment.