54 lines
1.4 KiB
YAML
54 lines
1.4 KiB
YAML
name: Package build
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'mod*'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4.2.2
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4.4.0
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Set up npm7
|
|
run: npm i -g npm@7
|
|
- name: Setup PHP
|
|
uses: shivammathur/setup-php@2.34.1
|
|
with:
|
|
php-version: '7.4'
|
|
tools: composer
|
|
- name: install dependencies
|
|
run: |
|
|
wget https://github.com/ChristophWurst/krankerl/releases/download/v0.13.3/krankerl_0.13.3_amd64.deb
|
|
sudo dpkg -i krankerl_0.13.3_amd64.deb
|
|
- name: package
|
|
run: |
|
|
uname -a
|
|
RUST_BACKTRACE=1 krankerl --version
|
|
RUST_BACKTRACE=1 krankerl package
|
|
- uses: https://data.forgejo.org/forgejo/upload-artifact@v4
|
|
with:
|
|
name: Deck app tarball
|
|
path: build/artifacts/deck.tar.gz
|
|
- name: Attach tarball to release
|
|
uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # v2
|
|
id: attach_to_release
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: build/artifacts/deck.tar.gz
|
|
asset_name: deck.tar.gz
|
|
tag: ${{ github.ref }}
|
|
overwrite: true
|