diff options
author | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-10-08 20:14:22 -0400 |
---|---|---|
committer | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-10-08 20:14:22 -0400 |
commit | dd35076e0426d559946270601f16e66378469889 (patch) | |
tree | fce0524043a670d3f33139ecffe9fde2fbd0f6b4 /.github/workflows | |
parent | 776961f59e368c1c6ddf476b7326549bdc661bb6 (diff) |
Broke up textadept-modules into individual module repositories.
Zip them all into a single archive during the build process.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/release.yml | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 288b997d..412e4cb9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,23 +36,12 @@ jobs: with: repository: orbitalquark/textadept-build path: textadept-build - - name: Checkout textadept-modules - uses: actions/checkout@v2 - with: - repository: orbitalquark/textadept-modules - path: textadept-modules - name: Build id: build shell: bash run: | # Move cached dependencies into src/. - mv textadept-build/* src - rm -r textadept-build - - # Temporarily zip up modules since anything named "textadept*" in root - # is deleted by "make clean". - zip -r src/textadept.modules.zip textadept-modules - rm -r textadept-modules + mv textadept-build/* src && rm -r textadept-build # Build. if [[ ${{ github.event_name }} != schedule ]]; then @@ -74,9 +63,20 @@ jobs: sed 's/[^_]\+_\(.\+\)\.[^.]\+\.zip/\1/;'` fi echo "::set-output name=version::$version" - - # Rename and sign modules zip now that the version is known. - mv src/textadept.modules.zip src/textadept_$version.modules.zip + - name: Package modules + shell: bash + run: | + mkdir textadept-modules + modules="css ctags debugger export file_diff html lsp lua_repl \ + open_file_mode python rest ruby spellcheck yaml" + for module in $modules; do + gh_name="`echo -n $module | sed -e 's/_/-/g;'`" + gh_prefix="https://github.com/orbitalquark/textadept-$gh_name" + wget $gh_prefix/releases/download/latest/$module.zip + unzip -d textadept-modules $module.zip + done + zip -r src/textadept_${{ steps.build.outputs.version }}.modules.zip \ + textadept-modules - name: Upload artifacts uses: actions/upload-artifact@v2 with: |