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

@ -23,11 +23,15 @@ jobs:
with: with:
path: "dist/" path: "dist/"
- name: Upload CSS
uses: actions/upload-artifact@v4
with:
name: css
path: "dist/"
release: release:
needs: "build" needs: "build"
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
pull-requests: write pull-requests: write
@ -37,6 +41,12 @@ jobs:
id: "release" id: "release"
uses: "googleapis/release-please-action@v4" uses: "googleapis/release-please-action@v4"
- name: Download CSS
uses: actions/download-artifact@v4
with:
name: css
path: "dist/"
- name: Create tarball - name: Create tarball
if: ${{ steps.release.outputs.release_created }} if: ${{ steps.release.outputs.release_created }}
run: tar czf catppuccin-gitea.tar.gz --directory=./dist . run: tar czf catppuccin-gitea.tar.gz --directory=./dist .
@ -50,13 +60,10 @@ jobs:
deploy: deploy:
needs: "build" needs: "build"
runs-on: "ubuntu-latest" runs-on: "ubuntu-latest"
permissions: permissions:
pages: "write" pages: "write"
id-token: "write" id-token: "write"
environment: environment:
name: "github-pages" name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}" url: "${{ steps.deployment.outputs.page_url }}"