Merge branch 'dev'
This commit is contained in:
commit
a34c7ba245
2 files changed
+13
-8
No files matched your search
@@ -4,17 +4,16 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
send-webhook:
|
send-webhook:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
# Reads only the release event payload, so no checkout is needed and jq
|
||||||
uses: actions/checkout@v3
|
# is already present on the runner image.
|
||||||
|
|
||||||
- name: Install jq
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y jq
|
|
||||||
|
|
||||||
- name: Send webhook notification
|
- name: Send webhook notification
|
||||||
env:
|
env:
|
||||||
WEBHOOK_URL: ${{ secrets.RELEASE_WEBHOOK_URL }}
|
WEBHOOK_URL: ${{ secrets.RELEASE_WEBHOOK_URL }}
|
||||||
@@ -57,7 +56,7 @@ jobs:
|
|||||||
"type": 2,
|
"type": 2,
|
||||||
"style": 5,
|
"style": 5,
|
||||||
"label": "Get The Latest Community Bridge Release",
|
"label": "Get The Latest Community Bridge Release",
|
||||||
"url": "https://github.com/The-Order-Of-The-Sacred-Framework/community_bridge/tree/main"
|
"url": "https://github.com/TheOrderFivem/community_bridge/releases/latest"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ jobs:
|
|||||||
- name: Prepare release package
|
- name: Prepare release package
|
||||||
run: |
|
run: |
|
||||||
RELEASE_ROOT="release/community_bridge"
|
RELEASE_ROOT="release/community_bridge"
|
||||||
mkdir -p "$RELEASE_ROOT"
|
mkdir -p "$RELEASE_ROOT/web"
|
||||||
|
|
||||||
rsync -a \
|
rsync -a \
|
||||||
--exclude '.git' \
|
--exclude '.git' \
|
||||||
@@ -93,8 +93,14 @@ jobs:
|
|||||||
--exclude '.github' \
|
--exclude '.github' \
|
||||||
--exclude 'release' \
|
--exclude 'release' \
|
||||||
--exclude 'node_modules' \
|
--exclude 'node_modules' \
|
||||||
|
--exclude 'web' \
|
||||||
./ "$RELEASE_ROOT/"
|
./ "$RELEASE_ROOT/"
|
||||||
|
|
||||||
|
# Pre-built web/dist/ is committed; ship the built UI only and leave
|
||||||
|
# the vite source and tooling (src/, package.json, configs) behind.
|
||||||
|
rsync -a web/dist/ "$RELEASE_ROOT/web/dist/"
|
||||||
|
rsync -a web/public/ "$RELEASE_ROOT/web/public/"
|
||||||
|
|
||||||
- name: Create zip archive
|
- name: Create zip archive
|
||||||
run: |
|
run: |
|
||||||
cd release
|
cd release
|
||||||
|
|||||||
Reference in new issue
Block a user