Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/publish-to-chrome.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,32 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
ref: ${{ github.event.release.tag_name }}
fetch-depth: 0

- name: Create ZIP file
run: |
if [ ! -d src ]; then
echo "src directory not found"
exit 1
fi
cd src
zip -r ../scrum-helper.zip .
zip -r ../scrum-helper.zip . >/dev/null
echo "Created zip:"
unzip -l ../scrum-helper.zip
if unzip -l ../scrum-helper.zip | awk '{print $4}' | grep -q '^manifest.json$'; then
echo "mannifest.json is at zip root"
else
echo "ERROR: manifest.json NOT at zip root; zip will fail on Chrome Web Store"
exit 1
fi

- name: Upload to Chrome Web Store
- name: Upload and Publish to Chrome Web Store
uses: PlasmoHQ/chrome-extension@v3
with:
client_id: ${{ secrets.CHROME_CLIENT_ID }}
client_secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh_token: ${{ secrets.CHROME_REFRESH_TOKEN }}
extension_id: ${{ secrets.CHROME_EXTENSION_ID }}
zip: scrum-helper.zip
zip: scrum-helper.zip
publish: true
42 changes: 42 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,48 @@ jobs:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Debug release-drafter outputs
run: |
echo "release-drafter.tag_name='${{ steps.release_drafter.outputs.tag_name }}"
echo "release-drafter.body:""
echo "${{ steps.release_drafter.outputs.body }}"

- name: Create / prepend CHANGELOG entry
if: steps.release_drafter.outputs.tag_name != ''
run: |
TAG="${{ steps.release_drafter.outputs.tag_name }}"
BODY="${{ steps.release_drafter.outputs.body }}"
DATE="$(date +%F)"
printf "## %s - %s\n\n%s\n\n---\n\n" "$TAG" "$DATE" "$BODY" > /tmp/new_changelog.md
if [ -f CHANGELOG.md ]; then
cat CHANGELOG.md >> /tmp/new_changelog.md
fi
mv /tmp/new_changelog.md CHANGELOG.md
git status --porcelain

- name: Commit CHANGELOG, create & push tag
if: steps.release_drafter.outputs.tag_name != ''
env:
TAG: ${{ steps.release_drafter.outputs.tag_name }}
GIT_AUTHOR_NAME: "github-actions[bot]"
GIT_AUTHOR_EMAIL: "github-actions[bot]@users.noreply.github.com"
run: |
git config user.name "$GIT_AUTHOR_NAME"
git config user.email "$GIT_AUTHOR_EMAIL"
git add CHANGELOG.md || true
if git diff --cached --quiet; then
echo "No CHANGELOG.md changes to commit"
else
git commit -m "docs(changelog): update for ${TAG}"
git push origin HEAD:master
fi
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag ${TAG} already exists locally"
else
git tag -a "${TAG}" -m "Release ${TAG}"
fi
git push origin "refs/tags/${TAG}" || echo "Tag push failed or tag already exists remotely"

- name: Checkout code
uses: actions/checkout@v4
with:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## v0.1.2 (2025-09-08)

## What's Changed

* No changes



## v1.0.4 (2025-08-29)

## What's Changed
Expand Down
Loading