ci: Add release action
This commit is contained in:
parent
785414f33f
commit
e8fbf0c241
@ -43,3 +43,28 @@ jobs:
|
|||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
- run: npm run stylelint
|
- run: npm run stylelint
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
|
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: nextcloud:26
|
||||||
|
steps:
|
||||||
|
- run: apt-get update
|
||||||
|
- run: apt-get install -y git nodejs
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: curl -sSLo /usr/local/bin/composer https://getcomposer.org/download/latest-stable/composer.phar
|
||||||
|
- run: chmod +x /usr/local/bin/composer
|
||||||
|
- uses: skjnldsv/read-package-engines-version-actions@v2
|
||||||
|
id: versions
|
||||||
|
with:
|
||||||
|
fallbackNode: '^20.0.0'
|
||||||
|
fallbackNpm: '^9.0.0'
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
||||||
|
- run: npm i -g npm@${{ steps.versions.outputs.npmVersion }}
|
||||||
|
- run: make dist
|
||||||
|
- uses: akkuman/gitea-release-action@v1
|
||||||
|
if: startsWith(gitea.ref, 'refs/tags')
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
build/artifacts/RePod.tar.gz
|
||||||
|
5
Makefile
5
Makefile
@ -56,9 +56,6 @@ endif
|
|||||||
ifneq (,$(wildcard $(CURDIR)/package.json))
|
ifneq (,$(wildcard $(CURDIR)/package.json))
|
||||||
make npm
|
make npm
|
||||||
endif
|
endif
|
||||||
ifneq (,$(wildcard $(CURDIR)/js/package.json))
|
|
||||||
make npm
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Installs and updates the composer dependencies. If composer is not installed
|
# Installs and updates the composer dependencies. If composer is not installed
|
||||||
# a copy is fetched from the web
|
# a copy is fetched from the web
|
||||||
@ -77,7 +74,7 @@ endif
|
|||||||
# Installs npm dependencies
|
# Installs npm dependencies
|
||||||
.PHONY: npm
|
.PHONY: npm
|
||||||
npm:
|
npm:
|
||||||
npm install
|
npm ci
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
# Removes the appstore build
|
# Removes the appstore build
|
||||||
|
Loading…
Reference in New Issue
Block a user