JamesIves/github-pages-deploy-action

bug: ๐Ÿ Getting a file not found error

Closed this issue ยท 4 comments

Describe the bug

Hi James

Awesome tool! used on a few of my projects.

I'm getting the following issue when deploying

File not found: '/home/runner/work/_actions/JamesIves/github-pages-deploy-action/v4/lib/main.js'

This used to work before - I've made no changes to my repo

Many thanks

Reproduction Steps

make changes and push to repo

Logs

No response

Workflow

name: Angular Build and Deploy

on:
  push:
    branches:
      - main

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

    - name: Setup Node.js
      uses: actions/setup-node@v4
      with: 
        node-version: 20

    - name: Build Angular app to prod
      working-directory: ./tic-tac-toe-app
      run: npm install && npm run build:prod

    - name: Run Tests
      working-directory: ./tic-tac-toe-app
      run: npm run test:headless

    - name: Deploy to Github Pages
      uses: JamesIves/github-pages-deploy-action@v4
      with:
        token: ${{ secrets.GH_TOKEN }}
        BRANCH: prod
        FOLDER: tic-tac-toe-app/dist/browser

Additional Comments

No response

+1 here

Same ๐Ÿฅน

Run JamesIves/github-pages-deploy-action@v4 Error: File not found: '/home/runner/work/_actions/JamesIves/github-pages-deploy-action/v4/lib/main.js'

Workaround for now: #1697 (comment)

This issue has now been resolved as of v4.6.7, apologies about that. I'm going to make some adjustments to the integration tests so this doesn't go missed during the release cycle. The v4 major tag has also been updated so any existing workflows should now work as expected.