diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2021-10-28 17:42:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-28 17:42:25 +0200 |
commit | b70bdebcf09ba8c4de06760c2a8bc29cba2dcdbe (patch) | |
tree | d274b417a054e43d90301426b83cf46003f27e0a | |
parent | 9f9d1c7934ced0b02c8516caa8f5663f7f2b0c92 (diff) | |
parent | b5200c81ea353027bf5620fa75d640053ec93791 (diff) |
Merge pull request #2479 from nextcloud/revert-2478-feat/auto-publishfeat/auto-publish
-rw-r--r-- | .github/workflows/appstore-publish.yml | 103 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 1 insertions, 104 deletions
diff --git a/.github/workflows/appstore-publish.yml b/.github/workflows/appstore-publish.yml deleted file mode 100644 index 40dca87e..00000000 --- a/.github/workflows/appstore-publish.yml +++ /dev/null @@ -1,103 +0,0 @@ -name: Build and publish app release - -on: - release: - types: [published] - -env: - APP_NAME: contacts - -jobs: - build_and_publish: - runs-on: ubuntu-latest - steps: - - name: Check actor permission - uses: skjnldsv/check-actor-permission@v2 - with: - require: admin - - - name: Checkout - uses: actions/checkout@v2 - with: - path: ${{ env.APP_NAME }} - - - name: Read package.json node and npm engines version - uses: skjnldsv/read-package-engines-version-actions@v1.1 - id: versions - with: - fallbackNode: '^12' - fallbackNpm: '^6' - - - name: Get appinfo data - id: appinfo - uses: QwerMike/xpath-action@v1 - with: - filename: ${{ env.APP_NAME }}/appinfo/info.xml - expression: '//info//dependencies//nextcloud/@min-version' - - - name: Get Nextcloud min-version - id: nextcloud - run: | - data="${{ steps.appinfo.outputs.result}}" - echo "::set-output name=minVersion::${data##*=}" - - - name: Set up node ${{ steps.versions.outputs.nodeVersion }} - uses: actions/setup-node@v2 - with: - node-version: ${{ steps.versions.outputs.nodeVersion }} - - - name: Set up npm ${{ steps.versions.outputs.npmVersion }} - run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" - - - name: Set up php - uses: shivammathur/setup-php@v2 - with: - php-version: 7.4 - coverage: none - - - name: Build - run: | - cd ${{ env.APP_NAME }} - npm ci - npm run build - make appstore - - - name: Checkout server - run: | - wget --quiet https://download.nextcloud.com/server/releases/latest-${{ steps.nextcloud.outputs.minVersion }}.zip - unzip latest-${{ steps.nextcloud.outputs.minVersion }}.zip - - - name: Sign app - run: | - # Extracting release - cd ${{ env.APP_NAME }}/build/artifacts - tar -xvf ${{ env.APP_NAME }}.tar.gz - cd ../../../ - # Setting up keys - echo "${{ secrets.APP_PRIVATE_KEY }}" > ${{ env.APP_NAME }}.key - wget --quiet "https://github.com/nextcloud/app-certificate-requests/raw/master/${{ env.APP_NAME }}/${{ env.APP_NAME }}.crt" - # Signing - php occ integrity:sign-app --privateKey=${{ env.APP_NAME }}.key --certificate=${{ env.APP_NAME }}.crt --path=${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }} - # Rebuilding archive - cd ${{ env.APP_NAME }}/build/artifacts - tar -cvf ${{ env.APP_NAME }}.tar.gz - - - name: Upload app tarball to release - uses: svenstaro/upload-release-action@v2 - id: attach_to_release - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }}.tar.gz - asset_name: ${{ env.APP_NAME }}.tar.gz - tag: ${{ github.ref }} - overwrite: true - - # - name: Upload app to Nextcloud appstore - # uses: R0Wi/nextcloud-appstore-push-action@v1 - # with: - # app_name: ${{ env.APP_NAME }} - # appstore_token: ${{ secrets.APPSTORE_TOKEN }} - # download_url: ${{ steps.attach_to_release.outputs.browser_download_url }} - # app_private_key: ${{ secrets.APP_PRIVATE_KEY }} - # nightly: ${{ github.event.release.prerelease }} - @@ -6,7 +6,7 @@ project_directory=$(CURDIR)/../$(app_name) build_tools_directory=$(CURDIR)/build/tools source_build_directory=$(CURDIR)/build/artifacts/source source_package_name=$(source_build_directory)/$(app_name) -appstore_build_directory=$(CURDIR)/build/artifacts +appstore_build_directory=$(CURDIR)/build/artifacts/appstore appstore_package_name=$(appstore_build_directory)/$(app_name) all: dev-setup lint build-js-production install-composer-deps-dev test-php |