ci: make sure to upload/download built CSS (#30)

Co-authored-by: Hammy <58985301+sgoudham@users.noreply.github.com>
This commit is contained in:
nullishamy 2024-09-19 01:40:44 +01:00 committed by GitHub
parent 7eb75bf808
commit 0ba2dd1dae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,12 +22,16 @@ jobs:
uses: "actions/upload-pages-artifact@v3"
with:
path: "dist/"
- name: Upload CSS
uses: actions/upload-artifact@v4
with:
name: css
path: "dist/"
release:
needs: "build"
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
@ -36,6 +40,12 @@ jobs:
- name: "Release"
id: "release"
uses: "googleapis/release-please-action@v4"
- name: Download CSS
uses: actions/download-artifact@v4
with:
name: css
path: "dist/"
- name: Create tarball
if: ${{ steps.release.outputs.release_created }}
@ -50,13 +60,10 @@ jobs:
deploy:
needs: "build"
runs-on: "ubuntu-latest"
permissions:
pages: "write"
id-token: "write"
environment:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"