Add .forgejo/workflows/build.yml
Some checks are pending
Build Pacman Package / build (push) Waiting to run
Some checks are pending
Build Pacman Package / build (push) Waiting to run
This commit is contained in:
parent
d008f90399
commit
4dc3cfd986
1 changed files with 37 additions and 0 deletions
37
.forgejo/workflows/build.yml
Normal file
37
.forgejo/workflows/build.yml
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
name: Build Pacman Package
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16' # Specify the Node.js version you need
|
||||||
|
|
||||||
|
- name: Install pnpm
|
||||||
|
run: npm install -g pnpm
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm i
|
||||||
|
|
||||||
|
- name: Build Pacman package
|
||||||
|
run: pnpm package --linux pacman
|
||||||
|
|
||||||
|
- name: Upload Pacman package
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: pacman-package
|
||||||
|
path: /build # Adjust this path as needed
|
||||||
Loading…
Reference in a new issue