Skip to content

Commit

Permalink
added deployment job
Browse files Browse the repository at this point in the history
  • Loading branch information
luth1um committed Aug 10, 2024
1 parent 567a65c commit 6fce033
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,37 @@ jobs:

- name: Run E2E tests
run: yarn e2e

# Job 6: Deploy to GitHub Pages
deploy:
needs:
- static-analysis
- e2e
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/release'
concurrency:
group: deploy_gh_pages
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Restore cache
uses: actions/cache@v4
with:
path: |
node_modules
~/.cache/yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Build the project
run: yarn build

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/timed-automata-analysis

0 comments on commit 6fce033

Please sign in to comment.