Skip to content

Commit

Permalink
Merge pull request #379 from vaninanton/release-workflow
Browse files Browse the repository at this point in the history
Автоматическая сборка релиза
  • Loading branch information
visavi authored Nov 15, 2023
2 parents f1ddcfc + 22d5952 commit 9bbbfa6
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,16 @@ jobs:
- name: Build and run production scripts
run: npm run prod

- name: Remove node_modules
run: rm -r node_modules

- name: Clear vendor
run: php vendor/bin/cleanup

- name: Create Archive
run: zip -r archive.zip .
run: zip -r release.zip -x '*.git*' -x '*node_modules*' .

- name: Upload Archive
uses: actions/upload-artifact@v3
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
name: composer-archive
path: archive.zip
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release.zip
asset_name: rotor-release-$tag.zip
tag: ${{ github.ref }}

0 comments on commit 9bbbfa6

Please sign in to comment.