Skip to content

Fix deploy workflow - update deprecated GitHub Actions syntax#2

Merged
benfoxall merged 2 commits intomainfrom
copilot/fix-deploy-task-issue
Jan 21, 2026
Merged

Fix deploy workflow - update deprecated GitHub Actions syntax#2
benfoxall merged 2 commits intomainfrom
copilot/fix-deploy-task-issue

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

The deploy workflow was using deprecated GitHub Actions syntax (set-output) and outdated action versions that caused deployment failures.

Changes

  • Removed deprecated set-output command - Eliminated manual yarn cache directory detection
  • Updated actions - checkout@v2.3.1v4, replaced cache@v2 with setup-node@v4 built-in caching
  • Updated deployment action - github-pages-deploy-action@v3.7.1v4 with lowercase parameters (branch, folder, clean)
  • Added permissions - contents: write for deployment authorization

Before

- name: Get yarn cache directory 📦
  id: yarn-cache
  run: |
    echo "::set-output name=dir::$(yarn cache dir)"

- name: Deploy 🚀
  uses: JamesIves/github-pages-deploy-action@3.7.1
  with:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    BRANCH: gh-pages
    FOLDER: build

After

- name: Setup Node.js
  uses: actions/setup-node@v4
  with:
    node-version: '18'
    cache: 'yarn'

- name: Deploy 🚀
  uses: JamesIves/github-pages-deploy-action@v4
  with:
    branch: gh-pages
    folder: build
Original prompt

The deploy task seems to be broken (this is a pretty old repo)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: benfoxall <51385+benfoxall@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix broken deploy task in old repository Fix deploy workflow - update deprecated GitHub Actions syntax Jan 19, 2026
Copilot AI requested a review from benfoxall January 19, 2026 21:00
@benfoxall benfoxall marked this pull request as ready for review January 21, 2026 20:54
@benfoxall benfoxall merged commit f8694e9 into main Jan 21, 2026
@benfoxall benfoxall deleted the copilot/fix-deploy-task-issue branch January 21, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants