@@ -49,13 +49,13 @@ jobs:
49
49
else
50
50
echo "No version update detected or new version is not greater than old version."
51
51
echo "changed=false" >> $GITHUB_OUTPUT
52
- # exit 0
52
+ exit 0
53
53
fi
54
54
55
55
update_files :
56
56
runs-on : ubuntu-latest
57
57
needs : check_version
58
- # if: needs.check_version.outputs.version_changed == 'true'
58
+ if : needs.check_version.outputs.version_changed == 'true'
59
59
outputs :
60
60
release_log : ${{ steps.get_changes.outputs.release_log }}
61
61
steps :
@@ -85,57 +85,54 @@ jobs:
85
85
VERSION=${{ needs.check_version.outputs.new_version }}
86
86
sed -E -i.bak 's/Version-[0-9]+\.[0-9]+(\.[0-9]+)?/Version-'${VERSION}'/' README.md
87
87
rm README.md.bak
88
- git diff
89
88
90
89
- name : Update CHANGELOG
91
90
run : |
92
91
VERSION=${{ needs.check_version.outputs.new_version }}
93
92
FORMATTED_CHANGELOG=$(echo "$CHANGELOG" | sed 's/\\n/\n/g' | sed 's/^/ - /')
94
93
NEW_CHANGELOG=$(echo "- \`v${VERSION}\`\n${FORMATTED_CHANGELOG}\n" | sed 's/\\n/\n/g')
95
94
awk -v new_changelog="$NEW_CHANGELOG" 'NR==3{print new_changelog}1' CHANGELOG.md > tmpfile && mv tmpfile CHANGELOG.md
96
- git diff
97
95
98
96
- name : Commit changes
99
97
run : |
100
98
git config --global user.name 'github-actions'
101
99
git config --global user.email '[email protected] '
102
- git diff
103
- git add .
100
+ git add README.md CHANGELOG.md
104
101
git diff --staged
105
102
# git commit -m "Update README and CHANGELOG for version ${{ needs.check_version.outputs.new_version }}"
106
103
# git push
107
104
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
116
113
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'
121
118
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'
127
124
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
133
130
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
139
136
140
137
# create_release:
141
138
# runs-on: ubuntu-latest
0 commit comments