Skip to content

Commit

Permalink
ci: make sure to upload/download built CSS (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Hammy <58985301+sgoudham@users.noreply.github.com>
  • Loading branch information
nullishamy and sgoudham authored Sep 19, 2024
1 parent 7eb75bf commit 0ba2dd1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}"
Expand Down

0 comments on commit 0ba2dd1

Please sign in to comment.