ci: Add release action
All checks were successful
repod / xml (push) Successful in 23s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 1m54s
repod / release (push) Successful in 2m35s

This commit is contained in:
Michel Roux 2024-01-11 08:56:30 +01:00
parent 785414f33f
commit e8fbf0c241
2 changed files with 26 additions and 4 deletions

View File

@ -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

View File

@ -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