mirror of
https://github.com/minoplhy/deployment.git
synced 2025-04-21 18:46:57 +00:00
gitea-build.yaml: fix: prevent binary from being overwrite
This commit is contained in:
parent
2227a579ae
commit
a5943f69ca
12
.github/workflows/gitea-build.yaml
vendored
12
.github/workflows/gitea-build.yaml
vendored
@ -19,19 +19,29 @@ jobs:
|
|||||||
echo "GITEA_TAG=${GITEA_TAG}" >> $GITHUB_ENV
|
echo "GITEA_TAG=${GITEA_TAG}" >> $GITHUB_ENV
|
||||||
echo "GITEA_TAG=${GITEA_TAG}"
|
echo "GITEA_TAG=${GITEA_TAG}"
|
||||||
|
|
||||||
|
- name: Setup Package Directory
|
||||||
|
run: |
|
||||||
|
sudo mkdir -p /gitea-${GITEA_TAG}
|
||||||
|
|
||||||
- name: Run Gitea Build (binary)
|
- name: Run Gitea Build (binary)
|
||||||
run: |
|
run: |
|
||||||
echo "This Task will be run using the following tag: ${GITEA_TAG}"
|
echo "This Task will be run using the following tag: ${GITEA_TAG}"
|
||||||
curl -L https://github.com/minoplhy/scriptbox/raw/main/build_gitea/Linux/build.sh | bash -s -- --git-tag "${GITEA_TAG}"
|
curl -L https://github.com/minoplhy/scriptbox/raw/main/build_gitea/Linux/build.sh | bash -s -- --git-tag "${GITEA_TAG}"
|
||||||
|
|
||||||
|
# Copy gitea to package directory(this is due to a broken mechanism in origin script)
|
||||||
|
sudo cp ~/gitea-binaries/gitea /gitea-${GITEA_TAG}/gitea
|
||||||
|
|
||||||
- name: Run Gitea Build (static)
|
- name: Run Gitea Build (static)
|
||||||
run: |
|
run: |
|
||||||
echo "This Task will be run using the following tag: ${GITEA_TAG}"
|
echo "This Task will be run using the following tag: ${GITEA_TAG}"
|
||||||
curl -L https://github.com/minoplhy/scriptbox/raw/main/build_gitea/Linux/build.sh | bash -s -- --git-tag "${GITEA_TAG}" --static
|
curl -L https://github.com/minoplhy/scriptbox/raw/main/build_gitea/Linux/build.sh | bash -s -- --git-tag "${GITEA_TAG}" --static
|
||||||
|
|
||||||
|
# Copy gitea to package directory(this is due to a broken mechanism in origin script)
|
||||||
|
sudo cp -r ~/gitea-binaries/gitea-static /gitea-${GITEA_TAG}/gitea-static
|
||||||
|
|
||||||
- name: Zip Package
|
- name: Zip Package
|
||||||
run: |
|
run: |
|
||||||
tar czvf gitea-${GITEA_TAG}.tar.gz ~/gitea-binaries/
|
sudo tar czvf gitea-${GITEA_TAG}.tar.gz /gitea-${GITEA_TAG}
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user