This commit is contained in:
parent
3970d03161
commit
d7908abfea
1 changed files with 34 additions and 0 deletions
34
.forgejo/workflows/release.yaml
Normal file
34
.forgejo/workflows/release.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
name: Create Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
- name: Prepare, Check, Lint and Format
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
cp package* build/
|
||||||
|
mkdir releases
|
||||||
|
tar czvf releases/build.tar.gz build/
|
||||||
|
|
||||||
|
- name: Create Release
|
||||||
|
- uses: actions/forgejo-release@v2
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
url: https://git.pweapon.org
|
||||||
|
release-dir: releases
|
Loading…
Add table
Reference in a new issue