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: |
|
- 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'
|
||||||
|
|||||||
Reference in New Issue
Block a user