Skip to content

Commit 863b1ff

Browse files
committed
Uncomment build_zips job to test
1 parent 53d9f0c commit 863b1ff

File tree

1 file changed

+30
-33
lines changed

1 file changed

+30
-33
lines changed

.github/workflows/release-extension.yaml

Lines changed: 30 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ jobs:
4949
else
5050
echo "No version update detected or new version is not greater than old version."
5151
echo "changed=false" >> $GITHUB_OUTPUT
52-
# exit 0
52+
exit 0
5353
fi
5454
5555
update_files:
5656
runs-on: ubuntu-latest
5757
needs: check_version
58-
# if: needs.check_version.outputs.version_changed == 'true'
58+
if: needs.check_version.outputs.version_changed == 'true'
5959
outputs:
6060
release_log: ${{ steps.get_changes.outputs.release_log }}
6161
steps:
@@ -85,57 +85,54 @@ jobs:
8585
VERSION=${{ needs.check_version.outputs.new_version }}
8686
sed -E -i.bak 's/Version-[0-9]+\.[0-9]+(\.[0-9]+)?/Version-'${VERSION}'/' README.md
8787
rm README.md.bak
88-
git diff
8988
9089
- name: Update CHANGELOG
9190
run: |
9291
VERSION=${{ needs.check_version.outputs.new_version }}
9392
FORMATTED_CHANGELOG=$(echo "$CHANGELOG" | sed 's/\\n/\n/g' | sed 's/^/ - /')
9493
NEW_CHANGELOG=$(echo "- \`v${VERSION}\`\n${FORMATTED_CHANGELOG}\n" | sed 's/\\n/\n/g')
9594
awk -v new_changelog="$NEW_CHANGELOG" 'NR==3{print new_changelog}1' CHANGELOG.md > tmpfile && mv tmpfile CHANGELOG.md
96-
git diff
9795
9896
- name: Commit changes
9997
run: |
10098
git config --global user.name 'github-actions'
10199
git config --global user.email '[email protected]'
102-
git diff
103-
git add .
100+
git add README.md CHANGELOG.md
104101
git diff --staged
105102
# git commit -m "Update README and CHANGELOG for version ${{ needs.check_version.outputs.new_version }}"
106103
# git push
107104
108-
# build_zips:
109-
# runs-on: ubuntu-latest
110-
# needs:
111-
# - check_version
112-
# - update_files
113-
# steps:
114-
# - name: Checkout repository
115-
# uses: actions/checkout@v3
105+
build_zips:
106+
runs-on: ubuntu-latest
107+
needs:
108+
- check_version
109+
- update_files
110+
steps:
111+
- name: Checkout repository
112+
uses: actions/checkout@v3
116113

117-
# - name: Zip Chromium extension
118-
# run: |
119-
# VERSION=${{ needs.check_version.outputs.new_version }}
120-
# zip -r ../signature-sync-chrome-${VERSION}.zip . -x '.*' -x '__MACOSX' -x '*.md'
114+
- name: Zip Chromium extension
115+
run: |
116+
VERSION=${{ needs.check_version.outputs.new_version }}
117+
zip -r ../signature-sync-chrome-${VERSION}.zip . -x '.*' -x '__MACOSX' -x '*.md'
121118
122-
# - name: Zip Firefox extension
123-
# run: |
124-
# git checkout firefox
125-
# VERSION=${{ needs.check_version.outputs.new_version }}
126-
# zip -r ../signature-sync-firefox-${VERSION}.zip . -x '.*' -x '__MACOSX' -x '*.md'
119+
- name: Zip Firefox extension
120+
run: |
121+
git checkout firefox
122+
VERSION=${{ needs.check_version.outputs.new_version }}
123+
zip -r ../signature-sync-firefox-${VERSION}.zip . -x '.*' -x '__MACOSX' -x '*.md'
127124
128-
# - name: Upload Chrome zip
129-
# uses: actions/upload-artifact@v3
130-
# with:
131-
# name: signature-sync-chrome
132-
# path: ../signature-sync-chrome-${{ needs.check_version.outputs.new_version }}.zip
125+
- name: Upload Chrome zip
126+
uses: actions/upload-artifact@v3
127+
with:
128+
name: signature-sync-chrome
129+
path: ../signature-sync-chrome-${{ needs.check_version.outputs.new_version }}.zip
133130

134-
# - name: Upload Firefox zip
135-
# uses: actions/upload-artifact@v3
136-
# with:
137-
# name: signature-sync-firefox
138-
# path: ../signature-sync-firefox-${{ needs.check_version.outputs.new_version }}.zip
131+
- name: Upload Firefox zip
132+
uses: actions/upload-artifact@v3
133+
with:
134+
name: signature-sync-firefox
135+
path: ../signature-sync-firefox-${{ needs.check_version.outputs.new_version }}.zip
139136

140137
# create_release:
141138
# runs-on: ubuntu-latest

0 commit comments

Comments
 (0)