Skip to content

Commit

Permalink
Pretty and some directory mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Wolf committed Feb 22, 2023
1 parent 6d9398e commit c50d0a7
Showing 1 changed file with 21 additions and 32 deletions.
53 changes: 21 additions & 32 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install tar
run: sudo apt-get update && sudo apt-get -y install tar zip
- name: Write release version
run: |
TAG=${{ github.event.release.tag_name }}
Expand All @@ -16,46 +14,37 @@ jobs:
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Checkout
uses: actions/checkout@v2
- name: Remove GitHub CI/CD
run: rm -r .github/
- name: Remove gitignore
run: rm .gitignore
- name: Remove CI
run: rm -r CI/
- name: Remove tests
run: rm -r tests/
- name: Remove test
run: rm -r test/
- name: Remove Module tests
run: rm -rf Modules/*/test Modules/*/*/test
- name: Remove Service tests
run: rm -rf Services/*/test Services/*/*/test
- name: Remove Dicto
run: rm -r dicto/
- name: Remove babelrc
run: rm .babelrc.json
- name: Remove eslintrc
run: rm .eslintrc.json
- name: Remove Captain Hook
run: rm captainhook.json
- name: Install Dependencies
- name: Cleanup directories
run: |
rm -r .github/
rm .gitignore
rm -r CI/
rm -r tests/
rm -r test/
rm -rf Modules/*/test Modules/*/*/test
rm -rf Services/*/test Services/*/*/test
rm -r dicto/
rm .babelrc.json
rm .eslintrc.json
rm captainhook.json
- name: Install dependencies
uses: php-actions/composer@v6
with:
dev: no
php_version: 7.4
version: 2.2.x
php_extensions: zip gd xsl
- name: Pack Release Zip
- name: Pack release zip
run: zip -ry ../ILIAS-${VERSION}.zip ./
- name: Pack Release Tar
- name: Pack release tar
run: tar -zcvf ../ILIAS-${VERSION}.tar.gz ./
- name: MD5sum
run: |
md5sum ILIAS-${VERSION}.zip
ls -hs ILIAS-${VERSION}.zip
md5sum ILIAS-${VERSION}.tar.gz
ls -hs ILIAS-${VERSION}.tar.gz
- name: Upload Artifact
md5sum ../ILIAS-${VERSION}.zip
ls -hs ../ILIAS-${VERSION}.zip
md5sum ../ILIAS-${VERSION}.tar.gz
ls -hs ../ILIAS-${VERSION}.tar.gz
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: release-artifact
Expand Down

0 comments on commit c50d0a7

Please sign in to comment.