mirror of
https://github.com/catppuccin/gitea.git
synced 2025-06-08 08:27:01 +09:00
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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- uses: catppuccin/setup-deno@v2
|
||||||
- uses: denoland/setup-deno@v1
|
|
||||||
with:
|
|
||||||
deno-version: v1.x
|
|
||||||
|
|
||||||
- run: deno task build
|
- run: deno task build
|
||||||
|
|
||||||
- name: Upload Pages Artifact
|
- name: Upload Pages Artifact
|
||||||
uses: "actions/upload-pages-artifact@v3"
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: "dist/"
|
path: "dist/"
|
||||||
|
|
||||||
- name: Upload CSS
|
- name: Upload CSS
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -35,29 +28,24 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: "Release"
|
- name: "Release"
|
||||||
id: "release"
|
id: "release"
|
||||||
uses: "googleapis/release-please-action@v4"
|
uses: googleapis/release-please-action@v4
|
||||||
|
|
||||||
- name: Download CSS
|
- name: Download CSS
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: css
|
name: css
|
||||||
path: "dist/"
|
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 .
|
||||||
|
|
||||||
- name: Upload Release Artifacts
|
- name: Upload Release Artifacts
|
||||||
if: ${{ steps.release.outputs.release_created }}
|
if: ${{ steps.release.outputs.release_created }}
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: gh release upload ${{ steps.release.outputs.tag_name }} ./catppuccin-gitea.tar.gz --repo $GITHUB_REPOSITORY
|
run: gh release upload ${{ steps.release.outputs.tag_name }} ./catppuccin-gitea.tar.gz --repo $GITHUB_REPOSITORY
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: "build"
|
needs: "build"
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
|
@ -71,4 +59,4 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: "Deploy to GitHub Pages"
|
- name: "Deploy to GitHub Pages"
|
||||||
id: "deployment"
|
id: "deployment"
|
||||||
uses: "actions/deploy-pages@v4"
|
uses: actions/deploy-pages@v4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue