Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d8c2b4dfa8 |
@@ -23,20 +23,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
log_info "Updating version in version.sh to $(yellow)$NEW_VERSION"
|
log_info "Updating version in version.sh to $(yellow)$NEW_VERSION"
|
||||||
sed -Ei "s|^(Version=\")[^\"]*|\1${NEW_VERSION}|" Clear.sh
|
sed -Ei "s|^(Version=\")[^\"]*|\1${NEW_VERSION}|" Clear.sh
|
||||||
- name: TARRRRRRRR and push
|
mkdir dist/ && cp -v Clear.sh README.md dist/
|
||||||
run: |
|
- name: Publishing app version
|
||||||
PACKAGE_NAME="clearscript-v${NEW_VERSION}"
|
uses: https://gitea.skydust.fr/actions/publish-skydust-app@main
|
||||||
log_info "Packaging app into $(yellow)${PACKAGE_NAME}"
|
with:
|
||||||
tar -zcf "${PACKAGE_NAME}.tar.gz" Clear.sh README.md
|
appName: "brew-clearscript"
|
||||||
|
publishFolder: "./dist"
|
||||||
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
|
|
||||||
- name: Update homebrew repo
|
- name: Update homebrew repo
|
||||||
run: |
|
run: |
|
||||||
log_info "Shallow cloning the brew repo $(yellow)${HOMEBREW_REPO}"
|
log_info "Shallow cloning the brew repo $(yellow)${HOMEBREW_REPO}"
|
||||||
@@ -47,6 +39,7 @@ jobs:
|
|||||||
sed -Ei "s|(url \")[^\"]*|\1${PKG_URL}|" Formula/clearscript.rb
|
sed -Ei "s|(url \")[^\"]*|\1${PKG_URL}|" Formula/clearscript.rb
|
||||||
sed -Ei "s|(sha256 \")[^\"]*|\1${PKG_SHA}|" Formula/clearscript.rb
|
sed -Ei "s|(sha256 \")[^\"]*|\1${PKG_SHA}|" Formula/clearscript.rb
|
||||||
cat Formula/clearscript.rb
|
cat Formula/clearscript.rb
|
||||||
|
echo
|
||||||
|
|
||||||
git config user.email "release@example.com"
|
git config user.email "release@example.com"
|
||||||
git config user.name "Release"
|
git config user.name "Release"
|
||||||
|
|||||||
Reference in New Issue
Block a user