mirror of
https://github.com/morten-olsen/bob.git
synced 2026-02-08 01:46:29 +01:00
ci: deployment fixes
This commit is contained in:
18
.github/workflows/release-package.yml
vendored
18
.github/workflows/release-package.yml
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user