ci: deployment fixes

This commit is contained in:
Morten Olsen
2023-09-06 13:09:39 +02:00
parent b01ce539b7
commit 6f485f90e4

View File

@@ -33,9 +33,9 @@ jobs:
- run: | - run: |
pnpm install pnpm install
pnpm run build pnpm run build
- uses: actions/upload-artifact@v3
env: env:
ASSET_URL: https://mortenolsen.pro/bob ASSET_URL: https://mortenolsen.pro/bob
- uses: actions/upload-artifact@v3
with: with:
name: lib name: lib
retention-days: 5 retention-days: 5
@@ -44,6 +44,12 @@ jobs:
packages/*/package.json packages/*/package.json
package.json package.json
README.md README.md
- uses: actions/upload-artifact@v3
with:
name: web
retention-days: 5
path: |
packages/playground/dist
update-release-draft: update-release-draft:
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
needs: build needs: build
@@ -70,17 +76,11 @@ jobs:
name: github-pages name: github-pages
url: ${{ steps.deployment.outputs.page_url }} url: ${{ steps.deployment.outputs.page_url }}
steps: steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/download-artifact@v3
with:
name: lib
path: ./
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
working-directory: ./packages/playground/dist
id: deployment id: deployment
uses: actions/deploy-pages@v2 uses: actions/deploy-pages@v2
with:
artifact_name: web
release-npm: release-npm:
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'