Skip to content

Commit

Permalink
Fix working directory for Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandruIstrate committed Jan 19, 2024
1 parent 4e01ab4 commit 7392dec
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./salary-calc
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"

- name: Install Dependencies
run: "npm ci"

- name: Build Project
run: npx --no-install npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./build

deploy:
environment:
name: github-pages
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
uses: actions/deploy-pages@v3

0 comments on commit 7392dec

Please sign in to comment.