Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/calendar.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNextcloud bot <bot@nextcloud.com>2022-04-08 12:35:37 +0300
committerNextcloud bot <bot@nextcloud.com>2022-04-08 12:35:37 +0300
commitcd678f94d8dd30097d430f63dc0a7de63daaab26 (patch)
tree6ad8597a14644c0c383d86f4a1f0d1afc807846d /.github
parent4ff76a7248c3f66ea6c0f0b6cf51ec705d7e3268 (diff)
Updating appstore-build-publish.yml workflow from template
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/appstore-build-publish.yml32
1 files changed, 25 insertions, 7 deletions
diff --git a/.github/workflows/appstore-build-publish.yml b/.github/workflows/appstore-build-publish.yml
index 236404c3..fc04383c 100644
--- a/.github/workflows/appstore-build-publish.yml
+++ b/.github/workflows/appstore-build-publish.yml
@@ -20,6 +20,11 @@ jobs:
if: ${{ github.repository_owner == 'nextcloud-releases' }}
steps:
+ - name: Check actor permission
+ uses: skjnldsv/check-actor-permission@v2
+ with:
+ require: write
+
- name: Set app env
run: |
# Split and keep last
@@ -27,7 +32,7 @@ jobs:
echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
with:
path: ${{ env.APP_NAME }}
@@ -39,7 +44,7 @@ jobs:
expression: "//info//dependencies//nextcloud/@min-version"
- name: Read package.json node and npm engines version
- uses: skjnldsv/read-package-engines-version-actions@v1.1
+ uses: skjnldsv/read-package-engines-version-actions@v1.2
id: versions
# Continue if no package.json
continue-on-error: true
@@ -51,7 +56,7 @@ jobs:
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
# Skip if no package.json
if: ${{ steps.versions.outputs.nodeVersion }}
- uses: actions/setup-node@v2
+ uses: actions/setup-node@v3
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}
@@ -86,16 +91,29 @@ jobs:
npm ci
npm run build
+ - name: Check Krankerl config
+ id: krankerl
+ uses: andstor/file-existence-action@v1
+ with:
+ files: ${{ env.APP_NAME }}/krankerl.toml
+
- name: Install Krankerl
+ if: steps.krankerl.outputs.files_exists == 'true'
run: |
wget https://github.com/ChristophWurst/krankerl/releases/download/v0.13.0/krankerl_0.13.0_amd64.deb
sudo dpkg -i krankerl_0.13.0_amd64.deb
- - name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }}
- # Try krankerl, fallback to makefile
+ - name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }} with krankerl
+ if: steps.krankerl.outputs.files_exists == 'true'
+ run: |
+ cd ${{ env.APP_NAME }}
+ krankerl package
+
+ - name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }} with makefile
+ if: steps.krankerl.outputs.files_exists != 'true'
run: |
cd ${{ env.APP_NAME }}
- krankerl package || make appstore
+ make appstore
- name: Checkout server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }}
continue-on-error: true
@@ -106,7 +124,7 @@ jobs:
unzip latest-$NCVERSION.zip
- name: Checkout server master fallback
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
if: ${{ steps.server-checkout.outcome != 'success' }}
with:
repository: nextcloud/server