Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c8486f9af |
@@ -45,7 +45,8 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
|
RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }}
|
||||||
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
|
||||||
run: bash scripts/ci/compile-android.sh "${{ gitea.ref_name }}"
|
REF_NAME: ${{ gitea.ref_name }}
|
||||||
|
run: bash scripts/ci/compile-android.sh "$REF_NAME"
|
||||||
|
|
||||||
- name: Upload android artifact
|
- name: Upload android artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -65,7 +66,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Compile (Windows installer)
|
- name: Compile (Windows installer)
|
||||||
shell: bash
|
shell: bash
|
||||||
run: bash scripts/ci/compile-windows.sh "${{ gitea.ref_name }}"
|
env:
|
||||||
|
REF_NAME: ${{ gitea.ref_name }}
|
||||||
|
run: bash scripts/ci/compile-windows.sh "$REF_NAME"
|
||||||
|
|
||||||
- name: Upload windows artifact
|
- name: Upload windows artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@@ -96,22 +99,26 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
FORGEJO_URL: ${{ secrets.FORGEJO_URL }}
|
FORGEJO_URL: ${{ secrets.FORGEJO_URL }}
|
||||||
run: bash scripts/ci/release-client.sh "${{ gitea.ref_name }}"
|
REF_NAME: ${{ gitea.ref_name }}
|
||||||
|
run: bash scripts/ci/release-client.sh "$REF_NAME"
|
||||||
|
|
||||||
- name: Deploy → pangolin1 (downloads/)
|
- name: Deploy → pangolin1 (downloads/)
|
||||||
env:
|
env:
|
||||||
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
run: bash scripts/ci/deploy-client.sh "${{ gitea.ref_name }}"
|
REF_NAME: ${{ gitea.ref_name }}
|
||||||
|
run: bash scripts/ci/deploy-client.sh "$REF_NAME"
|
||||||
|
|
||||||
- name: Notify
|
- name: Notify
|
||||||
if: always()
|
if: always()
|
||||||
env:
|
env:
|
||||||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|
||||||
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
|
||||||
|
REF_NAME: ${{ gitea.ref_name }}
|
||||||
|
JOB_STATUS: ${{ job.status }}
|
||||||
run: |
|
run: |
|
||||||
. scripts/ci/notify.sh
|
. scripts/ci/notify.sh
|
||||||
if [ "${{ job.status }}" = "success" ]; then
|
if [ "$JOB_STATUS" = "success" ]; then
|
||||||
notify_ok "client ${{ gitea.ref_name }} released + deployed"
|
notify_ok "client $REF_NAME released + deployed"
|
||||||
else
|
else
|
||||||
notify_fail "client ${{ gitea.ref_name }} pipeline failed"
|
notify_fail "client $REF_NAME pipeline failed"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user