Skip to content

Commit

Permalink
Merge pull request #355 from Chia-Network/auto-changelog
Browse files Browse the repository at this point in the history
Auto changelog
  • Loading branch information
cmmarslender authored Mar 8, 2022
2 parents 1c70251 + ca29b58 commit 14f3c48
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
- uses: Chia-Network/actions/clean-workspace@main

- name: Checkout current branch
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
# Need REPO_ADMIN token so when the tag is created, the tag automation runs
token: ${{ secrets.REPO_ADMIN }}
fetch-depth: 0

- name: Check for current version tag. Create if it doesn't exist
run: |
Expand All @@ -32,6 +33,12 @@ jobs:
echo "Tag exists, nothing to do"
else
echo "Tag does not exist. Creating and pushing tag"
git tag "$version"
git push origin "$version"
npx standard-version
git add CHANGELOG.md
git config --global user.name 'ChiaAutomation'
git config --global user.email '[email protected]'
git commit -m "Updating changelog for $version"
git tag $version
git push origin $version
git push origin main
fi
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ jobs:
- name: Download MacOS artifacts
uses: actions/download-artifact@v2
with:
name: macos-x64
path: macos-x64
name: mac-installer
path: mac-installer

- name: Download Linux artifacts
uses: actions/download-artifact@v2
Expand All @@ -185,7 +185,7 @@ jobs:
- name: Create zips
run: |
zip -r windows-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip windows-x64
zip -r macos-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip macos-x64
zip -r macos-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip mac-installer
zip -r linux-x64-${{ steps.tag-name.outputs.TAGNAME }}.zip linux-x64
- name: Release
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "climate-warehouse",
"version": "0.0.9",
"version": "0.0.10",
"private": true,
"bin": "build/server.js",
"type": "module",
Expand Down

0 comments on commit 14f3c48

Please sign in to comment.