Skip to content

Commit

Permalink
porting new release code to 8.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
aembler committed Nov 7, 2023
1 parent ca1f141 commit eb803ab
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Publish New Version"
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
env:
ARCHIVE_BASENAME: concrete-cms-${{ github.event.release.tag_name }}
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: cd build/ && npm ci && grunt build-release
- name: Upload Archive
run: gh release upload ${{ github.event.release.tag_name }} build/${{ env.ARCHIVE_BASENAME }}.zip#archive
- name: Upload Remote Update Archive
run: |
cd build
unzip ${{ env.ARCHIVE_BASENAME }}.zip
mkdir ${{ env.ARCHIVE_BASENAME }}-remote-updater
mv ${{ env.ARCHIVE_BASENAME }}/concrete ${{ env.ARCHIVE_BASENAME }}-remote-updater/
zip -r ${{ env.ARCHIVE_BASENAME }}-remote-updater.zip ${{ env.ARCHIVE_BASENAME }}-remote-updater/
gh release upload ${{ github.event.release.tag_name }} ${{ env.ARCHIVE_BASENAME }}-remote-updater.zip#remote-updater
2 changes: 1 addition & 1 deletion build/tasks/build-release/download.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* jshint unused:vars, undef:true, node:true */

module.exports = function(grunt, config, parameters, done) {
var zipUrl = parameters.releaseSourceZip || 'https://github.com/concretecms/concretecms/archive/8.5.x.zip';
var zipUrl = parameters.releaseSourceZip || 'https://github.com/concretecms/concretecms/archive/refs/tags/8.5.13.zip';
var workFolder = parameters.releaseWorkFolder || './release';
function endForError(e) {
process.stderr.write(e.message || e);
Expand Down

0 comments on commit eb803ab

Please sign in to comment.