Skip to content

Commit

Permalink
Update workflows to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDarksideJ authored May 13, 2024
1 parent b1633c2 commit d587a50
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Build and Deploy

on:
push:
branches:
- 'main'
workflow_dispatch:
push:
branches:
- 'main'

workflow_dispatch:

permissions:
contents: read
Expand All @@ -26,7 +27,7 @@ jobs:
concurrency: ci-${{ github.ref }}
steps:
- name: Clone repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Restore NPM Packages
run: npm install
Expand All @@ -44,4 +45,4 @@ jobs:

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4
40 changes: 40 additions & 0 deletions .github/workflows/pullrequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Test Build Website

on:
pull_request:
branches:
- 'main'

workflow_dispatch:

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

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
test:
runs-on: ubuntu-latest
concurrency: ci-${{ github.ref }}
steps:
- name: Clone Repository
uses: actions/checkout@v4

- name: Restore NPM Packages
run: npm install

- name: Build Site
run: npm run build

complete:
runs-on: ubuntu-latest
needs: test
name: Test completion task
steps:
- run: echo "Tests Complete"

0 comments on commit d587a50

Please sign in to comment.