forked from catppuccin/gitea
ci(release-deploy): use deno v2 (#65)
This commit is contained in:
parent
1a542607e5
commit
01396a7243
1 changed files with 4 additions and 16 deletions
20
.github/workflows/release-deploy.yml
vendored
20
.github/workflows/release-deploy.yml
vendored
|
@ -8,21 +8,14 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: v1.x
|
||||
|
||||
- uses: catppuccin/setup-deno@v2
|
||||
- run: deno task build
|
||||
|
||||
- name: Upload Pages Artifact
|
||||
uses: "actions/upload-pages-artifact@v3"
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: "dist/"
|
||||
|
||||
- name: Upload CSS
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
@ -35,29 +28,24 @@ jobs:
|
|||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- name: "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
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
run: tar czf catppuccin-gitea.tar.gz --directory=./dist .
|
||||
|
||||
- name: Upload Release Artifacts
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: gh release upload ${{ steps.release.outputs.tag_name }} ./catppuccin-gitea.tar.gz --repo $GITHUB_REPOSITORY
|
||||
|
||||
|
||||
deploy:
|
||||
needs: "build"
|
||||
runs-on: "ubuntu-latest"
|
||||
|
@ -71,4 +59,4 @@ jobs:
|
|||
steps:
|
||||
- name: "Deploy to GitHub Pages"
|
||||
id: "deployment"
|
||||
uses: "actions/deploy-pages@v4"
|
||||
uses: actions/deploy-pages@v4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue