mirror of
https://github.com/catppuccin/gitea.git
synced 2024-11-24 23:51:02 -05:00
ci: use release-please
This commit is contained in:
parent
6bae7a8fed
commit
c5fd42c35a
3 changed files with 37 additions and 21 deletions
36
.github/workflows/release-please.yml
vendored
Normal file
36
.github/workflows/release-please.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
name: release-please
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release-please:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: google-github-actions/release-please-action@v3
|
||||||
|
id: release
|
||||||
|
with:
|
||||||
|
release-type: simple
|
||||||
|
|
||||||
|
- uses: denoland/setup-deno@v1
|
||||||
|
if: ${{ steps.release.outputs.release_created }}
|
||||||
|
with:
|
||||||
|
deno-version: v1.x
|
||||||
|
|
||||||
|
- run: deno task build
|
||||||
|
if: ${{ steps.release.outputs.release_created }}
|
||||||
|
|
||||||
|
- 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:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run:
|
||||||
|
gh release upload ${{ steps.release.outputs.tag_name }} ./artifact/some-build-artifact.zip
|
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
|
@ -1,21 +0,0 @@
|
||||||
name: Release
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "v*"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- uses: denoland/setup-deno@v1
|
|
||||||
with:
|
|
||||||
deno-version: v1.x
|
|
||||||
- run: deno task build
|
|
||||||
- name: Create tarball
|
|
||||||
run: tar czf catppuccin-gitea.tar.gz --directory=./dist .
|
|
||||||
- name: Add zips to release
|
|
||||||
uses: softprops/action-gh-release@v1
|
|
||||||
with:
|
|
||||||
files: ./catppuccin-gitea.tar.gz
|
|
1
version.txt
Normal file
1
version.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
0.3.1
|
Loading…
Reference in a new issue