mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-28 07:51:20 +00:00
debug: Try different method for gh-pages deploy
This commit is contained in:
parent
b2c4144c70
commit
70c5d497c1
1 changed files with 11 additions and 18 deletions
29
.github/workflows/seo-report.yaml
vendored
29
.github/workflows/seo-report.yaml
vendored
|
@ -13,7 +13,11 @@ concurrency:
|
||||||
cancel-in-progress: false
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-deploy:
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
if: github.event.deployment_status.state == 'success'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Check out
|
- name: Check out
|
||||||
|
@ -25,25 +29,14 @@ jobs:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: yarn global add @unlighthouse/cli puppeteer
|
run: yarn global add @unlighthouse/cli puppeteer gh-pages
|
||||||
|
|
||||||
- name: Build Unlighthouse report
|
- name: Build Unlighthouse report
|
||||||
run: unlighthouse-ci --site "${{ github.event.deployment_status.target_url }}" --build-static --router-prefix ${{ github.event.repository.name }}
|
run: unlighthouse-ci --site "${{ github.event.deployment_status.target_url }}" --build-static --router-prefix ${{ github.event.repository.name }}
|
||||||
|
|
||||||
- name: Upload GitHub Pages artifact
|
|
||||||
uses: actions/upload-pages-artifact@v1.0.8
|
|
||||||
with:
|
|
||||||
path: ./.unlighthouse
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
env:
|
||||||
uses: actions/deploy-pages@v2
|
GITHUB_TOKEN: ${{ secrets.GH_PAGES_TOKEN }}
|
||||||
with:
|
run: |
|
||||||
token: ${{ secrets.GH_PAGES_TOKEN }}
|
echo "baseurl: /$(basename $GITHUB_REF)" >> _config.yml
|
||||||
|
npx gh-pages --dist ./.unlighthouse --repo $(basename $GITHUB_REPOSITORY) --branch gh-pages
|
||||||
|
|
Loading…
Reference in a new issue