Skip to content

Commit

Permalink
Fix working directory paths
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruIstrate committed Jan 19, 2024
1 parent 1b6f9e1 commit 845319e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ on:
push:
branches:
- master
workflow_dispatch:

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

env:
WORKING_DIRECTORY: ./salary-calc
concurrency:
group: "pages"
cancel-in-progress: false

defaults:
run:
working-directory: $WORKING_DIRECTORY
working-directory: ./salary-calc

jobs:
build:
Expand All @@ -23,15 +25,12 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Print working directory
run: echo $WORKING_DIRECTORY/abc

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: $WORKING_DIRECTORY/package-lock.json
cache-dependency-path: ./salary-calc/package-lock.json

- name: Install Dependencies
run: "npm ci"
Expand All @@ -50,9 +49,6 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
defaults:
run:
working-directory: ./salary-calc
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 845319e

Please sign in to comment.