Compare commits
No commits in common. "c25710e4bdb0dd3b5fd8cadf5f5c7aaf23bc1312" and "b430067759ac1c2a3be4a38b9298f53bd5dc3e42" have entirely different histories.
c25710e4bd
...
b430067759
1 changed files with 4 additions and 6 deletions
|
@ -34,7 +34,7 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare Build Environment
|
- name: Prepare Build Environment
|
||||||
run: |
|
run: |
|
||||||
apt update && apt -y install zip unzip nodejs curl jq
|
apt update && apt -y install zip nodejs curl jq
|
||||||
|
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -53,7 +53,6 @@ jobs:
|
||||||
cd build
|
cd build
|
||||||
zip -r "../${PLUGIN_NAME}.zip" "${PLUGIN_NAME}"
|
zip -r "../${PLUGIN_NAME}.zip" "${PLUGIN_NAME}"
|
||||||
cd -
|
cd -
|
||||||
unzip -l "${PLUGIN_NAME}.zip"
|
|
||||||
|
|
||||||
- name: Create Release if not exists
|
- name: Create Release if not exists
|
||||||
run: |
|
run: |
|
||||||
|
@ -87,8 +86,7 @@ jobs:
|
||||||
| jq -r '.id')
|
| jq -r '.id')
|
||||||
|
|
||||||
# Pushes he zip file to be shown in the "Releases" tab under this release.
|
# Pushes he zip file to be shown in the "Releases" tab under this release.
|
||||||
curl -X POST "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets" \
|
curl -X POST "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/releases/${RELEASE_ID}/assets?name=${PLUGIN_NAME}.zip" \
|
||||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||||
-F "name=${PLUGIN_NAME}.zip" \
|
-H "Content-Type: application/zip" \
|
||||||
-F "attachment=@build/${PLUGIN_NAME}.zip"
|
--data-binary "@build/${PLUGIN_NAME}.zip"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue