4 Commits
v1.0.0 ... dev

Author SHA1 Message Date
d8c2b4dfa8 Using the new action to publish
All checks were successful
Rebase Remote Branches / rebase-branches (push) Successful in 3s
Production deployment / Building and pushing (push) Successful in 5s
2025-01-12 16:39:30 +01:00
5b71ebf994 Forgot to remove the version in the tar
All checks were successful
Rebase Remote Branches / rebase-branches (push) Successful in 3s
Production deployment / Building and pushing (push) Successful in 4s
2025-01-12 12:58:44 +01:00
0cf501af3b Another file cannot be used
Some checks failed
Rebase Remote Branches / rebase-branches (push) Successful in 3s
Production deployment / Building and pushing (push) Failing after 3s
2025-01-12 12:57:41 +01:00
ba79226be6 Almost there
All checks were successful
Rebase Remote Branches / rebase-branches (push) Successful in 3s
Production deployment / Building and pushing (push) Successful in 4s
2025-01-12 12:43:49 +01:00
3 changed files with 10 additions and 21 deletions

View File

@@ -22,22 +22,13 @@ jobs:
- name: Update package version
run: |
log_info "Updating version in version.sh to $(yellow)$NEW_VERSION"
sed -Ei "s|^(Version=\")[^\"]*|\1${NEW_VERSION}|" version.sh
cat version.sh
- name: TARRRRRRRR and push
run: |
PACKAGE_NAME="clearscript-v${NEW_VERSION}"
log_info "Packaging app into $(yellow)${PACKAGE_NAME}"
tar -zcf "${PACKAGE_NAME}.tar.gz" Clear.sh version.sh README.md
log_info "Sending package"
PKG_URL="${GITHUB_SERVER_URL}/api/packages/Skydust/generic/brew-clearscript/${NEW_VERSION}/package.tar.gz"
curl --user "MilaBot:${{ secrets.CI_TOKEN }}" \
--upload-file "${PACKAGE_NAME}.tar.gz" \
"${PKG_URL}"
echo "PKG_SHA=$(sha256sum "${PACKAGE_NAME}.tar.gz" | cut -d' ' -f1 | tr -d '\n')" >> $GITEA_ENV
echo "PKG_URL=${PKG_URL}" >> $GITEA_ENV
sed -Ei "s|^(Version=\")[^\"]*|\1${NEW_VERSION}|" Clear.sh
mkdir dist/ && cp -v Clear.sh README.md dist/
- name: Publishing app version
uses: https://gitea.skydust.fr/actions/publish-skydust-app@main
with:
appName: "brew-clearscript"
publishFolder: "./dist"
- name: Update homebrew repo
run: |
log_info "Shallow cloning the brew repo $(yellow)${HOMEBREW_REPO}"
@@ -48,6 +39,7 @@ jobs:
sed -Ei "s|(url \")[^\"]*|\1${PKG_URL}|" Formula/clearscript.rb
sed -Ei "s|(sha256 \")[^\"]*|\1${PKG_SHA}|" Formula/clearscript.rb
cat Formula/clearscript.rb
echo
git config user.email "release@example.com"
git config user.name "Release"
@@ -55,7 +47,7 @@ jobs:
log_info "Overriding git repository auth with PAT"
repo_url="$(git remote get-url origin)"
repo_url="${repo_url#https://}" # Remove HTTPS
GIT_NEW_URL="https://MilaBot:${{ secrets.CI_TOKEN }}@${repo_url}.git"
GIT_NEW_URL="https://MilaBot:${{ secrets.CI_TOKEN }}@${repo_url}"
git remote set-url origin "$GIT_NEW_URL"
log_info "Pushing the new version"

View File

@@ -1,5 +1,5 @@
#!/bin/zsh
source "./version.sh"
Version="2.0"
# ------ COLOR SETUP ------ #
# Reset

View File

@@ -1,3 +0,0 @@
#!/bin/zsh
# shellcheck disable=SC2034
Version="2.0"