Skip to content

deploy-gh-pages

deploy-gh-pages #17

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Deploy
on:
repository_dispatch:
types: [deploy-gh-pages]
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v5
with:
github-token: ${{ secrets.PAT }}
repository: Yskra/yskra
path: dist
artifact-ids: ${{ github.event.client_payload.artifact-ids }}
run-id: ${{ github.event.client_payload.run-id }}
- name: Fix File not found
run: cp dist/index.html dist/404.html
- name: Upload static files for pages
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: dist/
deploy:
name: Deploy to GitHub Pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
needs: upload
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4