Skip to content

Conversation

Copy link
Contributor

CopilotAI commented Oct 30, 2025

GitHub Pages workflow is failing due to actions/upload-pages-artifact@v1 using deprecated actions/upload-artifact@v3.

Changes

  • Updated .github/workflows/github-pages.yml: actions/upload-pages-artifact@v1@v2

The v2 action uses upload-artifact@v4 internally, resolving the deprecation warning.

Original prompt

The GitHub Pages workflow is failing because a deprecated actions/upload-artifact@v3 is being used via actions/upload-pages-artifact@v1. Update the workflow file .github/workflows/github-pages.yml to use actions/upload-pages-artifact@v2 which depends on upload-artifact@v4.

Changes to apply:

  • Update .github/workflows/github-pages.yml: replace 'uses: actions/upload-pages-artifact@v1' with 'uses: actions/upload-pages-artifact@v2'.

Edited full file content:

name: GitHub Pages on: push: branches: - pelican permissions: contents: read concurrency: group: pages cancel-in-progress: true jobs: build: name: Build runs-on: ubuntu-latest steps: - name: Checkout do repositório uses: actions/checkout@v3 with: submodules: recursive - name: Configura python uses: actions/setup-python@v4 with: python-version: "2.7" cache: pip - name: Instala dependências run: pip install -r requirements.txt - name: Build do site run: make publish - name: Upload do site uses: actions/upload-pages-artifact@v2 with: path: output/ deploy: name: Deploy needs: build permissions: pages: write id-token: write runs-on: ubuntu-latest environment: name: github-pages url: ${{steps.deployment.outputs.page_url }} steps: - name: Deploy no GitHub Pages id: deployment uses: actions/deploy-pages@v1 

Commit message: "chore(ci): bump upload-pages-artifact to v2 to avoid deprecated upload-artifact v3"

Notes:

  • After this change, re-run the GitHub Pages workflow to validate the job passes.
  • If upload-pages-artifact@v2 is not available in the repo runner environment, we'll update to use actions/upload-artifact@v4 directly or another compatible approach.

This pull request was created as a result of the following prompt from Copilot chat.

The GitHub Pages workflow is failing because a deprecated actions/upload-artifact@v3 is being used via actions/upload-pages-artifact@v1. Update the workflow file .github/workflows/github-pages.yml to use actions/upload-pages-artifact@v2 which depends on upload-artifact@v4.

Changes to apply:

  • Update .github/workflows/github-pages.yml: replace 'uses: actions/upload-pages-artifact@v1' with 'uses: actions/upload-pages-artifact@v2'.

Edited full file content:

name: GitHub Pages on: push: branches: - pelican permissions: contents: read concurrency: group: pages cancel-in-progress: true jobs: build: name: Build runs-on: ubuntu-latest steps: - name: Checkout do repositório uses: actions/checkout@v3 with: submodules: recursive - name: Configura python uses: actions/setup-python@v4 with: python-version: "2.7" cache: pip - name: Instala dependências run: pip install -r requirements.txt - name: Build do site run: make publish - name: Upload do site uses: actions/upload-pages-artifact@v2 with: path: output/ deploy: name: Deploy needs: build permissions: pages: write id-token: write runs-on: ubuntu-latest environment: name: github-pages url: ${{steps.deployment.outputs.page_url }} steps: - name: Deploy no GitHub Pages id: deployment uses: actions/deploy-pages@v1 

Commit message: "chore(ci): bump upload-pages-artifact to v2 to avoid deprecated upload-artifact v3"

Notes:

  • After this change, re-run the GitHub Pages workflow to validate the job passes.
  • If upload-pages-artifact@v2 is not available in the repo runner environment, we'll update to use actions/upload-artifact@v4 directly or another compatible approach.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

CopilotAI changed the title [WIP] Update deprecated actions in GitHub Pages workflowchore(ci): bump upload-pages-artifact to v2 to avoid deprecated upload-artifact v3Oct 30, 2025
CopilotAI requested a review from luzfcbOctober 30, 2025 19:59
@luzfcbluzfcb closed this Oct 30, 2025
@luzfcbluzfcb deleted the copilot/update-github-pages-workflow branch October 30, 2025 20:10
Sign up for freeto 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

@luzfcb