diff --git a/.gitea/workflows/repod.yml b/.gitea/workflows/repod.yml index 1f011b3..85b79ba 100644 --- a/.gitea/workflows/repod.yml +++ b/.gitea/workflows/repod.yml @@ -43,3 +43,28 @@ jobs: - run: npm run lint - run: npm run stylelint - 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 diff --git a/Makefile b/Makefile index 57de95d..cceb799 100644 --- a/Makefile +++ b/Makefile @@ -56,9 +56,6 @@ endif ifneq (,$(wildcard $(CURDIR)/package.json)) make npm endif -ifneq (,$(wildcard $(CURDIR)/js/package.json)) - make npm -endif # Installs and updates the composer dependencies. If composer is not installed # a copy is fetched from the web @@ -77,7 +74,7 @@ endif # Installs npm dependencies .PHONY: npm npm: - npm install + npm ci npm run build # Removes the appstore build