This commit is contained in:
Core 2022-08-25 20:07:25 +01:00
parent 24b6e43e2c
commit 5c9481aeab
No known key found for this signature in database
GPG key ID: 2AB8327FBA02D1C0

View file

@ -101,11 +101,19 @@ jobs:
release: release:
docker: docker:
- image: maniator/gh - image: cimg/node:lts-browsers
working_directory: ~/Cider working_directory: ~/Cider
steps: steps:
- attach_workspace: - attach_workspace:
at: ~/Cider/ at: ~/Cider/
- run:
name: Installing GitHub Command Line Interface
command: |
sudo apt-get update -y
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt-get update -y
sudo apt install -y gh
- run: - run:
name: Move Build Files name: Move Build Files
command: | command: |
@ -118,12 +126,15 @@ jobs:
mv ~/Cider/dist/*.blockmap ~/Cider/dist/artifacts mv ~/Cider/dist/*.blockmap ~/Cider/dist/artifacts
- store_artifacts: - store_artifacts:
path: ~/Cider/dist/artifacts path: ~/Cider/dist/artifacts
- run:
name: Run Version Script
command: |
sudo chmod +x resources/version.sh && ./resources/version.sh || true
echo "export APP_VERSION=$(node -p -e 'require("./package.json").version')" >>$BASH_ENV
- run: - run:
name: Publish Release name: Publish Release
command: | command: |
cd ~/Cider; echo "Attempting to create release for Cider v${APP_VERSION} on the ${CIRCLE_BRANCH} branch."
APP_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | sed 's/ //g');
echo "Attempting to create release for Cider v${APP_VERSION} on the ${CIRCLE_BRANCH} branch.";
gh release create "v${APP_VERSION}" --title "Cider Version ${APP_VERSION} (${CIRCLE_BRANCH})" --notes "**Beta Release** gh release create "v${APP_VERSION}" --title "Cider Version ${APP_VERSION} (${CIRCLE_BRANCH})" --notes "**Beta Release**
A full changelog is unavailable, but you can view the branch comparison [here](https://github.com/ciderapp/cider/compare/stable...main). A full changelog is unavailable, but you can view the branch comparison [here](https://github.com/ciderapp/cider/compare/stable...main).
These builds are considered bleeding edge, expect bugs and please do not use this as a representation of the full app. These builds are considered bleeding edge, expect bugs and please do not use this as a representation of the full app.