Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Commit

Permalink
bump version, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed May 31, 2022
1 parent ceec6fa commit 7cae1c1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 58 deletions.
56 changes: 11 additions & 45 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
env:
EP_GH_IGNORE_TIME: true
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.FILEBASE_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.FILEBASE_SECRET_ACCESS_KEY }}
APPLE_CERT_ID: ${{ secrets.APPLE_CERT_ID }}
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
Expand Down Expand Up @@ -91,52 +93,16 @@ jobs:
# package
cd $wd
yarn run publish --win --linux --mac --x64 --arm64
- name: publish changelog
uses: actions/github-script@v4
- name: upload
uses: actions/upload-artifact@v3
with:
script: |
// extract the repo and tag
const { repo: githubRepo, ref } = context,
{ owner, repo } = githubRepo,
tag = ref.replace('refs/tags/', '').trim(),
{ data } = await github.repos.getReleaseByTag({
owner, repo, tag
}),
{ name, id: release_id } = data,
// read the changelog
logLines = require('fs').readFileSync('CHANGELOG.md').toString('utf-8').split('\n');
// find matching release in the changelog
let body = [], found;
for (let i = 0; i < logLines.length; i++) {
const line = logLines[i];
// if this line matches the target release header, start collecting lines
if (line.indexOf(`# ${name}`) === 0) {
found = true;
continue;
}
// if the release hasn't been seen yet, skip
if (!found)
continue;
// if the line matches the next release header, stop
else if (/^# [0-9]+\.[0-9]+\.[0-9]+/.test(line)) {
body = body.join('\n').trim();
break;
}
// otherwise, add the line to the body
body.push(line);
}
// if we didn't find the body, throw an error
if (!body.length)
throw new Error(`could not find release body for ${name}`);
// update the release
await github.repos.updateRelease({
owner, repo, body, release_id
});
name: host manager ${{ github.ref_name }}
path: |
dist/*.AppImage
dist/*.deb
dist/*.exe
dist/*.dmg
dist/*.sha256
- name: cleanup
if: ${{ always() }}
run: |
Expand Down
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# 1.2.0 (2022-05-19)
# 1.2.0 (2022-05-31)

## Changed
+ Update to siad v1.5.8-rc1
+ Update to siad v1.5.8
+ Use `yarn` instead of `npm`
+ Add/Remove/Resize folder modals are non-blocking again.

## Added
+ arm64 releases for all platforms
+ Payout date column to show payout availability
+ Renewed column to show if a contract has been renewed.
+ Show pending payouts with wallet balance
+ New alerts for sector removal and folder resize, addition, and deletion
+ New alerts for all folder operations

# 1.1.1 (2021-11-15)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@
"git add"
]
},
"siaVersion": "1.5.8-rc1"
"siaVersion": "1.5.8"
}
18 changes: 9 additions & 9 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
afterSign: 'build/scripts/notarize.js',
afterAllArtifactBuild: 'build/scripts/sign.js',
/* eslint-disable no-template-curly-in-string */
artifactName: '${productName}-v${version}-${arch}.${ext}',
artifactName: '${productName}-v${version}-${os}-${arch}.${ext}',
extraResources: [
{
/* eslint-disable no-template-curly-in-string */
Expand All @@ -32,11 +32,11 @@ module.exports = {
],
win: {
/* eslint-disable no-template-curly-in-string */
artifactName: '${productName}-v${version}-${arch}.${ext}'
artifactName: '${productName}-v${version}-${os}-${arch}.${ext}'
},
mac: {
/* eslint-disable no-template-curly-in-string */
artifactName: '${productName}-v${version}-${arch}.${ext}',
artifactName: '${productName}-v${version}-${os}-${arch}.${ext}',
hardenedRuntime: true,
// disabled due to new Apple notarization failing
gatekeeperAssess: false,
Expand All @@ -46,7 +46,7 @@ module.exports = {
linux: {
executableName: 'Sia Host Manager',
/* eslint-disable no-template-curly-in-string */
artifactName: '${productName}-v${version}-${arch}.${ext}',
artifactName: '${productName}-v${version}-${os}-${arch}.${ext}',
target: [
'deb',
'AppImage'
Expand All @@ -55,7 +55,7 @@ module.exports = {
},
appImage: {
/* eslint-disable no-template-curly-in-string */
artifactName: '${productName}-v${version}-${arch}.${ext}'
artifactName: '${productName}-v${version}-${os}-${arch}.${ext}'
},
dmg: {
// new apple notarization does not need the dmg signed
Expand All @@ -66,10 +66,10 @@ module.exports = {
perMachine: true
},
publish: {
provider: 'github',
repo: 'host-manager',
owner: 'siacentral',
releaseType: 'prerelease'
provider: 's3',
bucket: 'siacentral',
endpoint: 'https://s3.filebase.com',
path: '/releases/host-manager'
}
}
}
Expand Down

0 comments on commit 7cae1c1

Please sign in to comment.