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